previous | start | next

Generating Assembler Code from C

The GNU C compiler option -S generates a text file with the assembler code that is generated by the compiler for a C source code file.

$ gcc -S sample.c       
     

This generates a file sample.s



previous | start | next