gcc -E sum.c > sum.i
gcc -E program-06.c > program-06.i
gcc -S -fverbose-asm -masm=att sum.i program-06.i
gcc -c sum.s program-06.s
gcc sum.o program-06.o
To create all intermediate files in one command
gcc -save-temps -fverbose-asm -masm=att sum.c program-06.c
1 - Using the GNU Compiler Collection (GCC)