popovicu/bare-metal-zig
No description provided.
This project builds a bare-metal binary using Zig and assembly.
To build the binary, simply run make:
make
This will compile main.zig and startup.S into an executable named kernel.
If you don't have zig on your PATH, you can specify the full path to your zig binary like this:
make ZIG=/tmp/zig/zig-x86_64-linux-0.15.0-dev.1283+1fcaf90dd/zig
You can run the compiled binary using QEMU:
qemu-system-riscv64 -machine virt -nographic -bios none -kernel kernel