Skip to content
systemcoding.dev
Topic

Toolchains

GCC, LLVM and Clang, the ARM GNU toolchain, linkers and linker scripts, ELF, cross-compiling, Make, CMake, Meson and Bazel, and writing a compiler of your own.

Flat illustration of source code passing through a compiler and linker into a binary, with the GNU, LLVM and C++ logos.
Toolchains

Use .PHONY Targets Correctly in Makefiles

Declare clean, all and test as .PHONY so a file with the same name cannot stop them, and learn phony prerequisites, subdirectory loops and force rules.

6 min read
Flat illustration of an assembly listing with addresses and mnemonics, with the GNU, Linux and AMD logos.
Assembly

Assemble and Link a GNU as Program on Linux

Assemble a GNU as source file on Linux x86-64 and link it three ways: with ld as a freestanding program, with gcc and libc, and with gcc driving as itself.

6 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.