+ 5
Can we write assembly code in middle of c++ program??
6 odpowiedzi
+ 7
Of course you can use inline asm in c / c++.
Syntax:
__asm{
//instructions
}
or
asm{
//instructions
}
or
__asm__{
}
Note: __asm / asm/__asm__ depends on your compiler..
+ 8
Assembly code and C++ can actually be a powerful combo in certain situations. For instance, if you want to create an operating system, assembly is basically a necessity. C++ has a lot of flexibility. In fact, C++ was used in the process of creating Windows.
+ 5
Yes we can. You have to write:
asm{
// Here goes assembly
}
+ 5
does onyone actually use Assembly code ?
+ 4
no doubt of power of assembly, but so hard to write. i think only few people use it, mostly hardware enginiers.