Skip to content

Juleinn/zig-riscv-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zig - RISC-V

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/

building

zig version
0.12.0-dev.3659+1e5075f81

zig build

this should give you a RISC-V, doublefloat ABI elf firmware

running

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published