GNU toolchain for RISC-V, including GCC
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
RISC-V GNU Compiler Toolchain
|
|
|
|
|
=============================
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Author
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
Andrew Waterman
|
|
|
|
|
|
|
|
|
|
Contributors
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
- Yunsup Lee
|
|
|
|
|
- Quan Nguyen
|
|
|
|
|
- Albert Ou
|
|
|
|
|
- Darius Rad
|
|
|
|
|
- Matt Thomas
|
|
|
|
|
- ultraembedded (github id)
|
|
|
|
|
|
|
|
|
|
### 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
|
|
|
|
|
|