Skip to content

mzimmer/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.

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.


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.1%
  • Java 12.6%
  • C++ 12.0%
  • Ada 9.1%
  • Assembly 5.4%
  • D 3.7%
  • Other 5.1%