Windows is one of Zig’s main supported platforms. You can write Zig programs on Windows, build Windows executables, call Windows system APIs, link with C libraries, and...
| Section | Title |
|---|---|
| 1 | Windows Support |
| 2 | Linux Support |
| 3 | macOS Support |
| 4 | WebAssembly |
| 5 | ARM and Embedded Targets |
| 6 | Cross-Target Debugging |
| 7 | Portable APIs |
| 8 | Handling Platform Differences |
| 9 | Packaging Cross-Platform Apps |
Windows SupportWindows is one of Zig’s main supported platforms. You can write Zig programs on Windows, build Windows executables, call Windows system APIs, link with C libraries, and...
Linux SupportLinux is one of the most natural platforms for Zig. Many Zig programs are built, tested, and deployed on Linux because Linux is common in servers, containers, embedded...
macOS SupportmacOS is one of Zig’s main desktop targets. You can use Zig on macOS to write command-line tools, development utilities, servers, libraries, and cross-platform applications.
WebAssemblyWebAssembly, often shortened to Wasm, is a portable binary instruction format. It lets you compile code once and run it inside different hosts, such as web browsers, servers,...
ARM and Embedded TargetsARM is a CPU architecture family used in phones, tablets, laptops, routers, Raspberry Pi boards, microcontrollers, servers, and many embedded devices. When you write Zig for...
Cross-Target DebuggingCross-target debugging means debugging a program built for a different machine, operating system, or CPU architecture than the one you are sitting at.
Portable APIsA portable API is an interface that works across more than one platform.
Handling Platform DifferencesA cross-platform Zig program should not pretend that every operating system behaves the same way. Windows, Linux, macOS, WebAssembly, and embedded targets have different...
Packaging Cross-Platform AppsPackaging means preparing your program so other people can download it, install it, run it, and trust what they are running.