Skip to content

Latest commit

 

History

History
69 lines (58 loc) · 3.42 KB

prebuilt.md

File metadata and controls

69 lines (58 loc) · 3.42 KB

Prebuilt Binaries

The prebuilt binaries for rv32emu are prepared primarily because the RISC-V Sail Model executable is required for the RISC-V Architecture Test, and selected RISC-V ELF files are useful for ISA simulation validation and testing. Some of these prebuilt binaries are stored in rv32emu-prebuilt. During testing or benchmarking, these binaries are automatically downloaded into the build/linux-x86-softfp/ and build/riscv32/ directories by default. The RISC-V binaries are compiled using the xPack RISC-V GCC toolchain with the options -march=rv32im -mabi=ilp32. The x86 binaries are compiled by GCC with -m32 -mno-sse -mno-sse2 -msoft-float options and use ieeelib as the soft-fp library.

To fetch the prebuilt binaries manually, run:

$ make artifact

Or build the binaries from scratch (the RISC-V cross-compiler is required):

$ make artifact ENABLE_PREBUILT=0 [CROSS_COMPILE=<COMPILER_PREFIX>]

The compiler prefix varies according to the used toolchain, such as riscv-none-elf-, riscv32-unknown-elf-, etc.

The prebuilt binaries in rv32emu-prebuilt are built from the following repositories and resources:

To determine performance of the floating point arithmetic, the following RISC-V binaries are built with option -march=rv32imf:

There are still some prebuilt standalone RISC-V binaries under build/ directory only for testing purpose: