Minimal x86 Kernel Zig

github.com

82 points by lopespm 7 hours ago


WD-42 - 32 minutes ago

Here's one for Risc-V that's a little more fleshed out, also in Zig: https://github.com/Fingel/aeros-v/blob/main/src/kernel.zig

6r17 - 2 hours ago

I'm very surprised it's *that* short - handling one in rust i'm surprised by the very low amount of code to get that up. Thanks or sharing that was a first time reading some Zig for me !

csense - 4 hours ago

Very neat. To clarify, Qemu can boot it, but I'm pretty sure you need some bootloader (e.g. Grub) to boot it on a physical system.

ajxs - 5 hours ago

See also: https://wiki.osdev.org/Zig_Bare_Bones

aryalaadi - an hour ago

thats not a kernel

drnick1 - 2 hours ago

What's the point of doing this in "Zig" instead of C, the traditional choice for this kind of thing?

throwaway27448 - 3 hours ago

Why choose intel? Let's build bootable software in 2026

messe - an hour ago

Minimal slop.

xx__yy - 3 hours ago

Gold! I see Zig, I upvote!