RV32I[MACF]
emulator with ELF supportAt present, we only verify on Ubuntu GNU/Linux. Please install Ubuntu Linux 20.04-LTS (or later) into your machine. It is fine with virtualization environments such as VirtualBox.
$PATH
Once step (1) and (2) are complete, you can simply update $PATH
environment variable via:
Check $PATH
at the first time:
You shall be able to see the following messages:
$ brew install sdl2 sdl2_mixer
$ sudo apt install libsdl2-dev libsdl2-mixer-dev
You shall see the following messages:
Run hello.elf
using the command line below:
-d
: Display the assembler mnemonics for the machine instructions
Expected output:
-h
: Display the ELF file header
Expected output:
list the section sizes–-and the total size–-for each of the object or archive files objfile in its argument list.
Expected output:
File hello.elf
should be generated if the above succeeds. The following flags should be recognized by you.
-march=rv32i
: Specify RV32I instruction set architecture.-mabi=ilp32
: Specify ILP32 ABI.