|
Programs are translated into different forms by the GNU Compiler Collection (GCC). GCC is a toolchain that performs several stages of translation to convert high-level programming code into executable files for a specific platform.
gcc -E source_code.c -o preprocessed_code.i
gcc -S preprocessed_code.i -o assembly_code.s
gcc -c assembly_code.s -o object_code.o
gcc object_code.o -o executable_program
The entire process can be simplified using a single command:
gcc source_code.c -o executable_program
This command performs all the necessary steps, from preprocessing to linking, producing the final executable program.