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
- Targets and the -target Triple
- Build for Linux, macOS, and Windows
- Cross-Compiling C with zig cc
- Static Binaries and musl