
The snapshot shows that it is in assembly language, which assembler can understand. Let’s see through this file using $vi filename.s This file is in assembly level instructions. The next step is to compile filename.i and produce an intermediate compiled output file filename.s. So header files has been expanded and included in our source file.

Let’s see what’s inside filename.i: using $vi filename.i The preprocessed output is stored in the filename.i. This is the first phase through which source code is passed. Let us one by one see what these intermediate files contain. The following screenshot shows all generated intermediate files. $gcc –Wall –save-temps filename.c –o filename There are four phases for a C program to become an executable:īy executing below command, We get the all intermediate files in the current directory along with the executable. What goes inside the compilation process?Ĭompiler converts a C program into an executable.

