GNU toolchain for RISC-V, including GCC
Browse cluster: RISC-V Toolchain & Math Libraries →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.