← Linux & ToolsLINUX & TOOLS 2.3
Compilation and Build Deep
Not started yet — GCC's four stages and flags in depth, real multi-file Makefiles including the kernel-module Makefile shape, and cross-compilation. 11 bytes across 3 chapters.
Planned chapters
- A — GCC In Depth. The four compilation stages and the flags to stop after each one, -Wall/-Wextra/-O0..-O2/-g, binary inspection with nm/objdump/readelf, static vs. dynamic linking.
- B — Make for Real. Rules and dependencies, variables and pattern rules, a real multi-file Makefile, and the kernel module Makefile shape (obj-m, make -C .../build M=$(PWD)).
- C — Cross-Compilation. What a toolchain is, the CROSS_COMPILE and ARCH variables, and the sysroot concept.
Not yet catalogued — check back once this topic is underway.
Notes from readers
Comments — via GitHub