Saturday, October 3, 2020

C program compilation flow

 Here is the brief summary of detail C program compilation process.


Source File (.c file)

            |

Preprocessing (Include all header file code in main source code, Expand all Macro and #define) (.i file)

            |

Compilation (Convert the program into assembly code) (.s file)

            |

Assembling (Convert the assembly code into machine code called object) (.obj or .o file)

            |

Linking  (Links different object file/module and system library together and create final executable object code) (.exe or .out file)       


No comments:

Post a Comment