Skip to content
RISC-V RV32I[MA] emulator with ELF support
C Makefile
Branch: master
Clone or download
Pull request Compare This branch is 13 commits ahead of sysprog21:master.
Latest commit d3df7fe Jan 6, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore simplified headers Dec 5, 2019
AUTHORS
LICENSE
Makefile Initial import Oct 16, 2019
README.md
emu-rv32i-elf.c
emu-rv32i-test-c.c
emu-rv32i-test.c
emu-rv32i.h add RV32C support Jan 6, 2020
test1.c Initial import Oct 16, 2019

README.md

RISC-V RV32I[MAC] emulator for learning with hand-assemble

This is a RISC-V emulator for the RV32I architecture, based on TinyEMU and stripped down for RV32I only.

How to compile it:

$ gcc -O3 -Wall emu-rv32i-test.c -o emu-rv32i-test

Run:

$ ./emu-rv32i-test

How to compile it: (RV32C)

$ gcc -O3 -Wall emu-rv32i-test-c.c -o emu-rv32i-test-c

Run:

$ ./emu-rv32i-test-c

How to build RISC-V toolchain on MacOS

$ brew tap riscv/riscv
$ brew install riscv-tools

How to use ELF

see also https://github.com/sysprog21/rv32emu

Blog

シンプルなシミュレーターとハンドアセンブルで始める、RISC-Vマシン語はじめのいっぽ
https://fukuno.jig.jp/2691

RV32C対応
https://fukuno.jig.jp/2722

You can’t perform that action at this time.