How to! complie the cpp source code to the asm code.....
the option -S just outputs the asm code without any symbol.....how to add the symbol:
for example :
//int a = 10;
asm code may be :
mov $0xa , 20(%esp);
and it is difficult for reading............
if using this form:
mov $0xa,$a(%esp) ; ///just like VS
it is easy to understand.....
but how to get asm code with the gcc option in second format.......
possible????
Have you read the rules of the forum? I doubt, so please do so and then ask your question in more appropriate place.
You may want to read the compiler documentation, as this is not something Code::Blocks does. Since you said it is not like with Visual Studio, I assume you use gcc: http://gcc.gnu.org/onlinedocs/gcc/
Specifically, you will be interested in the chapters "Debugging Options" and "Code Gen Options".
Quote from: oBFusCATed on December 13, 2011, 10:27:47 AM
Have you read the rules of the forum? I doubt, so please do so and then ask your question in more appropriate place.
Sorry.....
Quote from: thomas on December 13, 2011, 11:53:50 AM
You may want to read the compiler documentation, as this is not something Code::Blocks does. Since you said it is not like with Visual Studio, I assume you use gcc: http://gcc.gnu.org/onlinedocs/gcc/
Specifically, you will be interested in the chapters "Debugging Options" and "Code Gen Options".
Thanks!