Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 996 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 996 Bytes

RISC-V Cross-Compiler

Author : Andrew Waterman, Yunsup Lee

Date : November 11, 2011

Version : (under version control)

This is the RISC-V C and C++ cross-compiler. It supports two build modes: a generic ELF/Newlib toolchain and a more sophisticated Linux-ELF/glibc toolchain. The latter is also the basis for the RISC-V Akaros cross- compiler, which is kept separately in the Akaros repository.

Installation (Newlib)

To build the Newlib cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv
make

You should now be able to use riscv-gcc and its cousins.

Installation (Linux)

To build the Linux cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply run the following command:

./configure --prefix=/opt/riscv
make linux