Compilation process

The compilation of source code and execution of compiled file can be divide into following steps :

Preprocessing : Preprocessing is the First phase before compilation of source code. It does some replacements according to #include , #define and #ifdef .

Compilation : It is the second phase of compilation process. Using compiler we convert  source code  inputed from preprocessing is converted to assembly language Code.

Assembling : It is the third sphase of compilation process.  Using Assembler assembly code is converted to Object code.

Linking: This is the final stage of Compilation process. Using linking programs the Object code is converted to Executable code.

 


Loading is for executing  the executable code. it is not part of compilation :

Loading: Using loader executable code is loaded into RAM and passed to CPU for execution.

%d bloggers like this: