gcc
How GCC compiles C: the preprocessor, compiler, assembler and linker stages.
1 min read
Compiling C files

Compilation is the translation of source code (the code we write) into object code (sequence of statements in machine language) by a compiler.
The compilation process has four different steps:
- The preprocessing
- The compiling
- The assembling
- The linking
The preprocessor
gcc -E main.cThe compiler
gcc -S main.cThe assembler
gcc -c main.cThe linker
gcc main.c./a.outor
gcc main.c -o my_program./my_program