Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

static linking

Putting library code into the program file itself, instead of loading it from the system when the program starts.

Static linking copies library code into the executable at build time; dynamic linking resolves shared libraries (.so, .dylib, .dll) at load time. Rust links Rust crates statically by default and the platform C library dynamically (except musl).

Loading interactive…

Examples

  • ldd ./dockstat on a musl build prints statically linked: the program needs no shared libraries on the server.

Read the full section →