Generate Assembly Code

To generate the assembler output from a program's source-code called program.c, use the following:

gcc -O0 -S -c program.c

which will leave the generated assembly code on the file program.s.