A minimal bare-metal x86 kernel written entirely in Zig without any assembly files. It boots via Multiboot 1 protocol, prints colored text to VGA display, and halts. The project demonstrates cross-compilation from any host (including Apple Silicon) and instant testing with QEMU, requiring only Zig 0.14.0+ and QEMU. The kernel sets up a 16 KiB stack, writes directly to VGA memory at 0xB8000, and uses Zig's volatile pointer semantics for memory-mapped I/O. It targets x86-freestanding-none with disabled red zone and SSE/AVX.

4m read timeFrom github.com
Post cover image
Table of contents
What it doesPreconditionsHow to runProject structureSystem diagramKey technical details
444 Impressions1 Comment