The Compilation Process

1. Preprocessing :

  • Remove comments from the source code.
  • Macro expansion.
  • Expansion of included header files.

2. Compilation of pre-processed file

  • Check C program for syntax errors.
  • Translate the file into intermediate code i.e. in assembly language.
  • Optionally optimize the translated code for better performance.

3. Assembly

4. Linking

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store