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.
 
 
 
 
 
 
Andrew Waterman 4cdd628c68 glibc: simplify ld.so self-relocation 12 years ago
binutils binutils, glibc: remove unused reloc 12 years ago
gcc gcc: improve PIC code generation 12 years ago
glibc/sysdeps glibc: simplify ld.so self-relocation 12 years ago
linux-headers/include glibc: initial port of glibc 2.20 12 years ago
newlib newlib: import port of newlib 1.18.0 12 years ago
patches gcc: detect assembler support for TLS 12 years ago
scripts gcc: initial gcc 4.9.1 port 12 years ago
.gitignore gcc: initial gcc 4.9.1 port 12 years ago
Makefile.in Explicitly use /bin/bash for Makefile's shell 12 years ago
README.md binutils: clean up code; adhere to FSF spacing 12 years ago
configure gcc: initial gcc 4.9.1 port 12 years ago
configure.ac gcc: initial gcc 4.9.1 port 12 years ago

README.md

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