# rust-lang/rustc_codegen_gcc

libgccjit AOT codegen for rustc

Repository: https://github.com/rust-lang/rustc_codegen_gcc
Canonical: https://ross.abutalabs.com/products/rustc_codegen_gcc
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: hacktoberfest
Last push: 2026-08-29T22:33:51+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 2192, "days_push": 4, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1160, forks 103 (observed 2026-09-01T02:14:06.430811+00:00)

## What it is
A GCC-based codegen backend for rustc that uses libgccjit for ahead-of-time compilation of Rust code. It allows compiling Rust on platforms unsupported by LLVM and leverages GCC's optimizations and architecture support.

## Use cases
- compile rust code on platforms not supported by llvm
- use gcc optimizations for rust compilation
- test gcc patches with a rust backend
- port rust to new cpu architectures
- compare gcc vs llvm codegen performance for rust

## When to choose
- you need to build Rust for a target architecture LLVM does not support
- you want to experiment with GCC's optimization pipeline on Rust code
- you are developing or testing GCC patches for Rust support

## When to avoid
- you need a production-ready, fully stable Rust toolchain
- you rely on LLVM-specific tooling or diagnostics
- you want zero setup - it requires a patched libgccjit fork

## Facets
- artifact type: library
- maturity: experimental
- function: compiler, build-tool, developer-tools
- domain: compilers, programming-languages, developer-tools
- platform: rust, cpp, cross-platform
- tags: rustc-backend, gcc, libgccjit, codegen, llvm-alternative, linux

## Member repositories
- rust-lang/rustc_codegen_gcc (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:06.430811+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-30T06:31:58.561685+00:00, confidence not recorded.
  - readme: https://github.com/rust-lang/rustc_codegen_gcc (fetched 2026-09-01T02:14:06.430811+00:00, sha d239f2708ead)
- Data as of 2026-08-30T08:39:29.467469+00:00.
