RISC-V GNU Toolchain
github.com
- Free plan
- Windows
- macOS
- Linux
What RISC-V GNU Toolchain is
RISC-V GNU Toolchain is a free, open-source C and C++ cross-compiler for building bare-metal ELF or Linux ELF toolchains. Bare-metal configurations can use Newlib or Picolibc; Linux configurations can use glibc, musl, or uClibc. The default target is RV64GC, with options for RV32 or RV64, architecture extensions, and ABIs. Multilib builds can target both 32-bit and 64-bit systems for Newlib and Linux/glibc toolchains. The project includes GCC, binutils, GDB, and supported C libraries. LLVM can be built alongside the toolchain, but its configuration flag cannot be combined with multilib options. Testing documentation covers DejaGNU and make check targets, while simulator options include QEMU, GDB, and experimental Spike support; availability varies by toolchain. Host options include Linux and macOS, with Windows use through a Linux subsystem or Cygwin. The README says a build needs about 8 GiB of disk space and cloning takes around 6.65 GB. Development guidance is aimed at developers, advanced users, and people building with their own source trees.
Who it suits
The toolchain suits developers and advanced users building RISC-V bare-metal or Linux toolchains, particularly those configuring targets, libraries, or multilib builds. Its development guidance also addresses users working from their own source trees.
Good to know, and what to watch
- Builds bare-metal or Linux ELF toolchains.
- Supports RV32 and RV64 configurations.
- Offers Newlib, Picolibc, glibc, musl, and uClibc.
- Includes testing support and simulator options.
- Build requires about 8 GiB of disk space.
- Repository clone takes around 6.65 GB.
- LLVM and multilib configuration flags cannot be combined.
- Windows use requires a Linux subsystem or Cygwin.
Plans
Every plan and priceRISC-V GNU Compiler Toolchain
Free plan
The verdict
RISC-V GNU Toolchain provides configurable compiler toolchains for bare-metal and Linux targets, with testing and simulator options documented. Its substantial build and clone storage requirements are worth accounting for first.
What the maker publishes
- Architecture and ABI
- The build defaults to RV64GC and supports RV32 or RV64 configurations with selectable architecture extensions and ABIs. source
- Architecture and ABI
- It supports rv32i or rv64i with standard extensions and lists ilp32 and lp64 ABI variants. source
- Bare-metal libraries
- Bare-metal builds can use Newlib or Picolibc. source
- Build requirements
- The README says a build downloads about 200 MiB of upstream sources and needs about 8 GiB of disk space; cloning the repository takes around 6.65 GB. source
- Build size
- The README says cloning takes around 6.65 GB and a build needs about 8 GiB of disk space. source
- C libraries
- Bare-metal builds can use Newlib or Picolibc, while Linux builds can use glibc, musl, or uClibc. source
- Development audience
- The development section is described as intended for developers, advanced users, or users building with their own source tree. source
- Headquarters
- Switzerland source
- License
- The repository has a LICENSE file containing licensing terms for the project and its included components. source
- Linux libraries
- Linux builds can use glibc, musl, or uClibc. source
- LLVM integration
- LLVM can be built alongside the toolchain with the --enable-llvm configure flag, but LLVM and multilib configuration flags cannot be combined. source
- LLVM integration
- LLVM can be built in combination with the toolchain using the --enable-llvm configure flag. source
- Multilib
- Multilib builds can target both 32-bit and 64-bit systems, and are supported for Newlib and Linux/glibc toolchains. source
- Multilib
- Multilib is available for Newlib and Linux/glibc toolchains; musl, uClibc, and Picolibc build a single variant. source
- Platforms
- The README provides build instructions for Linux distributions and macOS, including Apple Silicon; it also discusses Linux subsystem or Cygwin builds on Windows. source
- Purpose
- The project provides a RISC-V C and C++ cross-compiler that can build bare-metal ELF or Linux ELF toolchains. source
- Security information
- The repository page shows a Security and quality section with 0 alerts. source
- Simulation
- The project documents QEMU, GDB, and experimental Spike simulator options for running tests, with simulator support varying by toolchain. source
- Simulation
- The project documents QEMU, GDB, and experimental Spike simulators for testing, with QEMU as the maintained test-suite allowlist. source
- Support channel
- The repository provides an issue tracker and pull request interface on GitHub. source
- Supported host systems
- The README provides build prerequisites for Ubuntu, Fedora/CentOS/RHEL, Arch Linux, and macOS. source
- Testing
- The repository includes DejaGNU test support, and documents make check targets for GCC, Binutils, and glibc on Linux toolchains. source
- Test suite
- A port of the DejaGnu test suite is available, and make check and make report are wired for Newlib and Linux/glibc toolchains. source
- What it does
- It is a RISC-V C and C++ cross-compiler that builds bare-metal ELF or Linux ELF toolchains. source
Checked against the maker's pages on 30 Sept 2026.