To generate the assembler output from a program's source-code called program.c, use the following:
program.c
gcc -O0 -S -c program.c
which will leave the generated assembly code on the file program.s.
program.s