DEV Community

Discussion on: Explain me C compilation like I'm five

Collapse
 
mcr42_19 profile image
mcr42 • Edited

To dig a bit deeper, the process of building a program consists actually of 2 parts:
Compiling is converting each C file into machine code ( objects), and
Linking is putting all the objects together to create the executable file.
Libraries are (mostly) just prebuilt object files someone else prepared for you.