diff --git a/README.md b/README.md index d427fc2..4c58064 100644 --- a/README.md +++ b/README.md @@ -13,18 +13,18 @@ Emulator exit codes: - `2` - illegal instruction argument (like funct3) Compile: -0. Dependencies: `libelf` -1. ``` +1. Dependencies: `libelf` +2. ``` make # should display no warnings ``` -2. Executable is `build/criscv` +3. Executable is `build/criscv` Note: Prebuilts for **x86_64 & aarch64 Linux** are available [here](https://git.m724.eu/Minecon724/criscv/actions), pick the latest one, unpack and run the one for your architecture. \ Those are **dynamic**, meaning you still need the dependencies! See compile step 0 above. Compile programs: -0. Get the toolchain obviously -1. ``` +1. Get the toolchain obviously +2. ``` riscv32-unknown-elf-gcc -ffreestanding -nostdlib -Ttext=0x0 -e main -O0 -o program.elf program.c ``` 3. `program.bin` is the binary file with the program, pass it as an argument