# riscv-collab/riscv-gnu-toolchain

GNU toolchain for RISC-V, including GCC

Repository: https://github.com/riscv-collab/riscv-gnu-toolchain
Canonical: https://ross.abutalabs.com/products/riscv-gnu-toolchain
Language: C
License: NOASSERTION
License Family: other
Last push: 2026-08-26T10:01:26+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4377, "days_push": 7, "days_rel": 8, "gap_med": 7, "n_releases_24m": 30}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4594, forks 1413 (observed 2026-08-28T04:08:54.751287+00:00)

## What it is
The official GNU toolchain for RISC-V, providing GCC-based C and C++ cross-compilers. It can build bare-metal ELF toolchains (Newlib/Picolibc) or Linux ELF toolchains (glibc, musl, or uClibc).

## Use cases
- cross-compile C/C++ programs for RISC-V
- build a bare-metal toolchain for RISC-V microcontrollers
- build a Linux userspace toolchain for RISC-V with glibc or musl
- compile operating systems or firmware targeting RISC-V
- set up a RISC-V development environment on Linux or macOS

## When to choose
- you need a GCC-based compiler targeting RISC-V
- you are developing firmware, kernels, or Linux software for RISC-V hardware
- you want the canonical, actively maintained RISC-V GNU toolchain

## When to avoid
- you need a lightweight toolchain without a multi-GB source download and build
- you target architectures other than RISC-V
- you prefer LLVM/Clang-based tooling for RISC-V

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, build-tool, developer-tools
- domain: developer-tools, embedded-systems, operating-systems
- platform: cross-platform
- tags: riscv, gcc, cross-compiler, toolchain, bare-metal, newlib, glibc, musl, linux, macos

## Member repositories
- riscv-collab/riscv-gnu-toolchain (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:54.751287+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:49.445044+00:00, confidence not recorded.
  - readme: https://github.com/riscv-collab/riscv-gnu-toolchain (fetched 2026-08-28T04:08:54.751287+00:00, sha 0a6671982d31)
- Data as of 2026-08-30T08:39:29.467469+00:00.
