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 C, GNU and LLVM logos.
Toolchains

Write Your First Makefile for a C Program

Write a working Makefile for a small C program with a compiler variable, flags, object files and a clean target, and see how make decides what to rebuild.

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

Ship a Library With a pkg-config .pc File

Write a pkg-config .pc file so users get the right include paths and link flags for your library with one command, and install it where pkg-config will find it.

6 min read
Flat illustration of an assembly listing with addresses and mnemonics, with the C, GNU and Arm logos.
Toolchains

Design a Stable C ABI for a Shared Library

Keep a shared library's C interface stable across releases with opaque handles, size-tagged structs, explicit error codes and a versioned symbol set.

7 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.