User forums > Using Code::Blocks

viewing generated assembler

(1/1)

riched158:
hi

i am using codeblocks under windows using C and the gcc compiler.  I would like to look at the generated assembly code from my c code.  can someone tell me how i can generate the assembler listing for viewing of (not debugging)

cheers
richard

billyonthemountain:
Just add -S to the compiler options or if using the command line :

--- Code: ---gcc -S -c exampleC.c -o exampleASM.s
--- End code ---

from gcc --help:

--- Quote ---  -S                       Compile only; do not assemble or link

--- End quote ---

Navigation

[0] Message Index

Go to full version