Sep 23, 2023

GCC Study

Technical Notes for GCC

Compile a C Program

Compiler steps

Frequently used flags

Linking Files Together

Compiling and Linking Separately

Separate compilation is useful when one object file source code is not changing frequently. Suppose source1.c and source2.c are not changing frequently, but main.c is. We can compile source1.c and source2.c once then instead of compiling them every time we make a change to main.c, we link them in the final step of the compilation process.

Creating a Library File

Build Tools

C/C++

Back to Notes