Table Of Contents
Resources
Build Process
- The compiler takes source code, such as
.cc
, and lowers it down to a .s
file, an assembly file which textually describes machine code for a specific architecture
- The assembler, assembles each
.s
into a .o
file, an object file4. An assembly file is merely a textual representation of an object file; assemblers are not particularly interesting programs.
- The linker, links all of your object files into a final executable or binary
Build System
- Software for automating compilation process
- It includes some improvements:
- Incremental builds
- Facilitates modular design
- The most known build system for C/C++ is Make, others like Ninja are pretty common too
- CMake is a build system generator, it generates build system files.
Memory
In a nutshell