0Pricing
Zig Academy · Lesson

Static Binaries and musl

Ship self-contained executables.

What Static Means

A static binary bundles its libraries inside the executable, so it runs without depending on libraries installed on the target machine.

Dynamic vs Static

A dynamic binary loads shared libraries at run time. A static one carries them along, trading a bigger file for fewer dependencies.

All lessons in this course

  1. Targets and the -target Triple
  2. Build for Linux, macOS, and Windows
  3. Cross-Compiling C with zig cc
  4. Static Binaries and musl
← Back to Zig Academy