Skip to content
This repository was archived by the owner on Feb 15, 2019. It is now read-only.

Building RISC V Chez

Paulo Matos edited this page Aug 28, 2018 · 7 revisions

The current Chez is being ported to RISC-V 64bits. The backend target is trv64le (threaded) and rv64le (non-threaded).

First we need to cross compile Chez using Mf-cross.

Assuming we are on Linux, 64bits:

$ cd Chez
Chez/ $ ./configure && make 

At this point we should have a a6le folder with boot files and scheme binary. If you want to build with OS threads support, pass --threads to ./configure and then your folder should be ta6le - if building on a x86_64 linux based system.

Then we call the cross compile Makefile:

Chez/ $ cd ta6le/s
Chez/s $ make -f Mf-cross m=ta6le xm=trv64le Scheme="../../ta6le/bin/scheme -b ../../ta6le/boot/ta6le/petite.boot -b ../../ta6le/boot/ta6le/scheme.boot"

At the moment there is, I think, a bug in Mf-cross such that the include of the target makefile is done incorrectly and this file needs editing before it works.

At the moment, I am manually editing the include Mf-$(xm) to include $(base)/s/Mf-$(xm).

Clone this wiki locally