The compilation is a process to generate object code from source code developed in C.
The phases through which our program passes are the following:
- Prepocessor: The input file with extension .c (for example “hello.c”) is passed to the preprocessor, and this converts the source code into expanded source code, which extension is .i, i.e the file output would be “hello.i”.
- Compiler: The input file now is “hello.i”, and the compiler converts this expanded source code into assembly code, which output file would be “hello.s”
- Assembler: Converts the assembly code into object code.
- Linker: Creates the executable file.