This commit is contained in:
parent
ab4e8dcd20
commit
0e2d8ac37c
1 changed files with 7 additions and 7 deletions
14
README.md
14
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.
|
||||
Note: Prebuilts for **x86_64 & aarch64 Linux** are available [here](https://git.m724.eu/Minecon724/criscv/actions), pick the top one, download the artifact, and keep the one for your architecture. \
|
||||
Those are **dynamic**, meaning you still need the dependencies! See compile step 1 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
|
||||
|
|
Loading…
Reference in a new issue