← All repos

riscv-gnu-toolchain

GNU toolchain for RISC-V, including GCC

Browse cluster: RISC-V Toolchain & Math Libraries
1,390commits
115contributors
5languages

Tech stack & purpose

The RISC-V GNU Toolchain is a C and C++ cross-compiler for the RISC-V instruction set architecture, built on GCC and GNU binutils. It supports two primary configurations: a generic ELF/Newlib toolchain for bare-metal development and a more feature-rich Linux-ELF/glibc toolchain for Linux targets. The project is built with standard GNU tools including GCC, binutils, and optionally LLVM/clang, and can be compiled on Ubuntu, Fedora, Arch Linux, and macOS with appropriate prerequisite packages. The toolchain supports various RISC-V architecture variants (32-bit and 64-bit) and multiple C libraries including glibc and musl, along with comprehensive testing capabilities via simulators like QEMU and Spike.

Languages

C
98.5%
Makefile
0.8%
Python
0.4%
M4
0.2%
Shell
0.1%

Contributors (top 30 of 115)