"GCC - Generate assembly and compile into program"

Published: Mon 11 March 2019

In content.

To generate assembly code out of your C program, type following command:

$gcc -S

Then to generate object file out of the assembly file, type following command:

$gcc -c .s -o .o

Then to compile it into a program will be following:

$gcc .o -o .exe

social