Skip to content

darius-bluespec/riscv-gcc

 
 

Repository files navigation

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

About

gcc+newlib and gcc+glibc toolchains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 52.0%
  • Java 11.4%
  • Ada 11.1%
  • C++ 11.0%
  • Assembly 5.3%
  • D 3.6%
  • Other 5.6%