The process of C compilation

Phase 1: Pre-processing:

Phase 2: Compilation:

Phase 3: Assembly

Phase 4: Linking

Examples:

Command options:

  • -c Option to compile and assemble the file, but not link.
  • -S Option to not assemble, and replace file extension suffix with .s
  • -E Option to stop after the pre-processing phase.
  • -o Option to place an output in another file.

--

--

I don’t know if I’ve found it, I just know it makes me happy.

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
Julian

I don’t know if I’ve found it, I just know it makes me happy.