Skip to content
UPEEC

Separate Compilation

Each `.c` file compiles to an object file; the linker combines them.

Easy
Comments 0

gcc -c main.c sensor.c then gcc main.o sensor.o -o app. Only changed files need recompiling — build tools (Make, CMake) automate this.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.