This is a small toy-project for getting familiar with both the RISC-V ISA and zig as an embedded programming language and build environment.
This is meant to run with qemu
This project is mostly inspired by this blog post : https://popovicu.com/posts/bare-metal-programming-risc-v/
zig version
0.12.0-dev.3659+1e5075f81
zig build
this should give you a RISC-V, doublefloat ABI elf firmware
Download and install qemu for RISC-V then
qemu-system-riscv64 -machine virt -bios zig-out/bin/firmware
Open the serial 0 in qemu, you should get some output information