Skip to content

Commit 8a1b74a

Browse files
committed
Update document for prebuilt executables
1 parent 69dc153 commit 8a1b74a

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

README.md

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -327,46 +327,36 @@ Use of this source code is governed by a MIT license that can be found in the [L
327327

328328
## External sources
329329

330-
In `rv32emu` repository, there are some prebuilt ELF files for testing purpose.
331-
* `aes.elf` : See [tests/aes.c](tests/aes.c)
332-
* `captcha.elf` : See [tests/captcha.c](tests/captcha.c)
330+
There are some prebuilt executables in [rv32emu-prebuilt](https://github.com/sysprog21/rv32emu-prebuilt) for testing and benchmarking purpose.
331+
The prebuilt executables are built from GNU/GCC v9 and [xPack GCC v14.2.0-1](https://github.com/xpack-dev-tools/gcc-xpack) under Ubuntu-20.04.
332+
333+
To fetch the prebuilt executables, run the following command:
334+
335+
```shell
336+
$ make build-testbenches
337+
```
338+
339+
Or, to compile the executables from the source, run:
340+
341+
```shell
342+
$ make build-testbenches USE_PREBUILT=0 CROSS_CC=<riscv-cross-compiler>
343+
```
344+
345+
Notice that the RISC-V cross-compiler is required to build the binary.
346+
347+
In default, `rv32emu` will download the tarball from GitHub and extract the executables into `build/bin/`.
348+
349+
There are still some prebuilt ELF files for testing purpose under `build/`.
333350
* `cc.elf` : See [tests/cc](tests/cc)
334351
* `chacha20.elf` : See [tests/chacha20](tests/chacha20)
335-
* `coremark.elf` : See [eembc/coremark](https://github.com/eembc/coremark) [RV32M]
336-
* `dhrystone.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
337-
* `donut.elf` : See [donut.c](tests/donut.c)
338352
* `doom.elf` : See [sysprog21/doom_riscv](https://github.com/sysprog21/doom_riscv) [RV32M]
339-
* `fcalc.elf` : See [fcalc.c](tests/fcalc.c)
340-
* `hamilton.elf` : See [hamilton.c](tests/hamilton.c)
341353
* `ieee754.elf` : See [tests/ieee754.c](tests/ieee754.c) [RV32F]
342354
* `jit-bf.elf` : See [ezaki-k/xkon_beta](https://github.com/ezaki-k/xkon_beta)
343-
* `lena.elf`: See [tests/lena.c](tests/lena.c)
344-
* `line.elf` : See [tests/line.c](tests/line.c) [RV32M]
345-
* `maj2random.elf` : See [tests/maj2random.c](tests/maj2random.c) [RV32F]
346-
* `mandelbrot.elf` : See [tests/mandelbrot.c](tests/mandelbrot.c)
347-
* `nqueens.elf` : See [tests/nqueens.c](tests/nqueens.c)
348-
* `nyancat.elf` : See [tests/nyancat.c](tests/nyancat.c)
349-
* `pi.elf` : See [tests/pi.c](tests/pi.c) [RV32M]
350-
* `qrcode.elf` : See [tests/qrcode.c](tests/qrcode.c)
351355
* `quake.elf` : See [sysprog21/quake-embedded](https://github.com/sysprog21/quake-embedded) [RV32F]
352356
* `readelf.elf` : See [tests/readelf](tests/readelf)
353-
* `richards.elf` : See [tests/richards.c](tests/richards.c)
354357
* `rvsim.elf` : See [tests/rvsim.c](tests/rvsim.c)
355358
* `scimark2.elf` : See [tests/scimark2](tests/scimark2) [RV32MF]
356359
* `smolnes.elf` : See [tests/smolnes](tests/smolnes.c) [RV32M]
357-
* `spirograph.elf` : See [tests/spirograph.c](tests/spirograph.c)
358-
* `stream.elf` : See [tests/stream](tests/stream.c) [RV32MF]
359-
* `qsort.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
360-
* `miniz.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
361-
* `primes.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
362-
* `sha512.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
363-
* `numeric_sort.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
364-
* `FP_emulation.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
365-
* `bitfield.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
366-
* `idea.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
367-
* `assignment.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
368-
* `string_sort.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
369-
* `huffman.elf` : See [nbench](https://github.com/nfinit/ansibench/tree/master/nbench)
370360
## Reference
371361

372362
* [Writing a simple RISC-V emulator in plain C](https://fmash16.github.io/content/posts/riscv-emulator-in-c.html)

0 commit comments

Comments
 (0)