GitHunt

###A 32-bit RISCV compiler toolchain (c-compiler, assembler and linker)
based on lcc (https://github.com/drh/lcc)
and binutils from eco32 (https://github.com/hgeisse/eco32) with
testcases for iverilog (https://github.com/steveicarus/iverilog)
running on picorv32 (https://github.com/cliffordwolf/picorv32).

#####Compilation of lcc with libraries and binutils:

./mkbinaries.sh

#####Running the testcases:
for binutils testcase:

cd testcases/binutils
./run.sh

A summary of the results will be in ./results/summary.log.

For picorv32 testcase (python3 and iverilog installation required):

cd testcases/picorv32
First build the simulation:
./buildsim.sh

Then either run a single test:

./runtest.sh sort

The result will be in ./sort/result/sort.log.
The simulation output will be in ./sort/result/result.log.
Or run all tests:

./runalltests.sh

A summary of the results will be in ./results.log.

Languages

C59.8%SystemVerilog12.9%C++10.6%Coq5.8%Verilog3.5%HTML2.9%Roff1.9%Makefile1.0%Python0.7%Assembly0.4%Shell0.2%Scala0.2%Objective-C0.1%Yacc0.1%Batchfile0.1%Forth0.0%

Contributors

Created January 19, 2017
Updated March 6, 2026
michg/riscv32_lcc | GitHunt