{"slug": "rustc-codegen-gcc", "name": "rustc_codegen_gcc", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 5, "commenters": 6, "warners": 0, "score": 4.544, "rising": -1.64, "first": "2025-11-01", "latest": "2026-07-13", "why": "there is a rustc codegen backend that uses GCC, so you can just skip the C part", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 5, "neutral": 1, "compare": 0, "warn": 0}, "spark": [2, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "there is a rustc codegen backend that uses GCC, so you can just skip the C part", "kind": "", "icon": true, "domain": null, "github_repo": "github.com/rust-lang/rustc_codegen_gcc", "official_url": "https://github.com/rust-lang/rustc_codegen_gcc", "pricing": "", "aliases": ["rustc_codegen_gcc"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 782403904, "item_id": 48900244, "url": "https://news.ycombinator.com/item?id=48900244", "by": "JoshTriplett", "date": "2026-07-13", "stance": "recommend", "quote": "that's less and less of a problem", "excerpt": "> Platform support being the big one. And between rustc_codegen_gcc, projects like https://github.com/FractalFir/crustc, the ongoing addition of backends to LLVM and Rust, and the eventual removal of obsolete targets as hardware goes away, that's less and less of a problem.", "context": "", "use_case": "", "switched_from": "", "story": "Linux 0.11 rewritten in idiomatic Rust, boots in QEMU"}, {"id": 780489569, "item_id": 48780598, "url": "https://news.ycombinator.com/item?id=48780598", "by": "moltonel", "date": "2026-07-03", "stance": "recommend", "quote": "it's much further along than gccrs", "excerpt": "Gccrs is valuable for various reasons (bootstrapping, refining the spec, etc), but for the main purpose of \"compiling to targets supported by gcc but not llvm\", it's definitely not as promising as https://github.com/rust-lang/rustc_codegen_gcc. It's a rustc backend, at the same level as llvm or cranelift, it's much further along than gccrs (already available as a rustup component and can compile any rust code) and wi", "context": "", "use_case": "", "switched_from": "", "story": "crustc: entirety of `rustc`, translated to C"}, {"id": 750123072, "item_id": 46882692, "url": "https://news.ycombinator.com/item?id=46882692", "by": "LeFantome", "date": "2026-02-03", "stance": "recommend", "quote": "it is an interesting development.", "excerpt": "I just noticed that rustc_codegen_gcc has been accepted into the mainline Rust compiler, or at least the nightly builds. https://github.com/rust-lang/rust/pull/151156 This means that you will be able to use either GCC or LLVM to build your Rust code with rustc (the main Rust compiler). That means you can compile your Rust for any platform that GCC supports. This only addresses the first point in the blog post (archit", "context": "", "use_case": "", "switched_from": "", "story": "Rust in the NetBSD Kernel, and other odd decisions"}, {"id": 750115744, "item_id": 46882234, "url": "https://news.ycombinator.com/item?id=46882234", "by": "LeFantome", "date": "2026-02-03", "stance": "recommend", "quote": "I think it is pretty far along.", "excerpt": "> There are many architectures that NetBSD supports where Rust is not available Are there many architectures that NetBSD supports where GCC is not available? The rustc_codegen_gcc project allows using the rustc compiler to target any architecture that GCC supports. I think it is pretty far along. https://github.com/rust-lang/rustc_codegen_gcc > getting a Rust compiler running in the first place is hard > bootstrap re", "context": "", "use_case": "", "switched_from": "", "story": "Rust in the NetBSD Kernel, and other odd decisions"}, {"id": 736859744, "item_id": 46053734, "url": "https://news.ycombinator.com/item?id=46053734", "by": "pabs3", "date": "2025-11-25", "stance": "recommend", "quote": "there is a rustc codegen backend that uses GCC, so you can just skip the C part", "excerpt": "Also there is a rustc codegen backend that uses GCC, so you can just skip the C part: https://github.com/rust-lang/rustc_codegen_gcc", "context": "", "use_case": "Rust compiler backend", "switched_from": "", "story": "APT Rust requirement raises questions"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["rust compiler backend", "rust for dreamcast target"], "compared": [{"slug": "gccrs", "name": "gccrs", "co": 2, "switched_from": 0, "switched_to": 0}, {"slug": "llvm", "name": "LLVM", "co": 2, "switched_from": 0, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=46866042", "title": "Rust in the NetBSD Kernel, and other odd decisions", "mentions": 2}, {"url": "https://news.ycombinator.com/item?id=45779860", "title": "Hard Rust requirements from May onward", "mentions": 2}, {"url": "https://news.ycombinator.com/item?id=48898134", "title": "Linux 0.11 rewritten in idiomatic Rust, boots in QEMU", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=48768464", "title": "crustc: entirety of `rustc`, translated to C", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46045972", "title": "APT Rust requirement raises questions", "mentions": 1}], "sentiment_by_month": {"2025-11": {"neutral": 1, "recommend": 2}, "2025-12": {}, "2026-01": {}, "2026-02": {"recommend": 1}, "2026-03": {}, "2026-04": {}, "2026-05": {}, "2026-06": {}, "2026-07": {"recommend": 2}, "2026-08": {}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 782403904, "item_id": 48900244, "url": "https://news.ycombinator.com/item?id=48900244", "by": "JoshTriplett", "date": "2026-07-13", "stance": "recommend", "quote": "that's less and less of a problem", "excerpt": "> Platform support being the big one. And between rustc_codegen_gcc, projects like https://github.com/FractalFir/crustc, the ongoing addition of backends to LLVM and Rust, and the eventual removal of obsolete targets as hardware goes away, that's less and less of a problem.", "context": "", "use_case": "", "switched_from": "", "story": "Linux 0.11 rewritten in idiomatic Rust, boots in QEMU"}, {"id": 780489569, "item_id": 48780598, "url": "https://news.ycombinator.com/item?id=48780598", "by": "moltonel", "date": "2026-07-03", "stance": "recommend", "quote": "it's much further along than gccrs", "excerpt": "Gccrs is valuable for various reasons (bootstrapping, refining the spec, etc), but for the main purpose of \"compiling to targets supported by gcc but not llvm\", it's definitely not as promising as https://github.com/rust-lang/rustc_codegen_gcc. It's a rustc backend, at the same level as llvm or cranelift, it's much further along than gccrs (already available as a rustup component and can compile any rust code) and wi", "context": "", "use_case": "", "switched_from": "", "story": "crustc: entirety of `rustc`, translated to C"}, {"id": 750123072, "item_id": 46882692, "url": "https://news.ycombinator.com/item?id=46882692", "by": "LeFantome", "date": "2026-02-03", "stance": "recommend", "quote": "it is an interesting development.", "excerpt": "I just noticed that rustc_codegen_gcc has been accepted into the mainline Rust compiler, or at least the nightly builds. https://github.com/rust-lang/rust/pull/151156 This means that you will be able to use either GCC or LLVM to build your Rust code with rustc (the main Rust compiler). That means you can compile your Rust for any platform that GCC supports. This only addresses the first point in the blog post (archit", "context": "", "use_case": "", "switched_from": "", "story": "Rust in the NetBSD Kernel, and other odd decisions"}, {"id": 750115744, "item_id": 46882234, "url": "https://news.ycombinator.com/item?id=46882234", "by": "LeFantome", "date": "2026-02-03", "stance": "recommend", "quote": "I think it is pretty far along.", "excerpt": "> There are many architectures that NetBSD supports where Rust is not available Are there many architectures that NetBSD supports where GCC is not available? The rustc_codegen_gcc project allows using the rustc compiler to target any architecture that GCC supports. I think it is pretty far along. https://github.com/rust-lang/rustc_codegen_gcc > getting a Rust compiler running in the first place is hard > bootstrap re", "context": "", "use_case": "", "switched_from": "", "story": "Rust in the NetBSD Kernel, and other odd decisions"}, {"id": 736859744, "item_id": 46053734, "url": "https://news.ycombinator.com/item?id=46053734", "by": "pabs3", "date": "2025-11-25", "stance": "recommend", "quote": "there is a rustc codegen backend that uses GCC, so you can just skip the C part", "excerpt": "Also there is a rustc codegen backend that uses GCC, so you can just skip the C part: https://github.com/rust-lang/rustc_codegen_gcc", "context": "", "use_case": "Rust compiler backend", "switched_from": "", "story": "APT Rust requirement raises questions"}, {"id": 733146560, "item_id": 45821660, "url": "https://news.ycombinator.com/item?id=45821660", "by": "pornel", "date": "2025-11-05", "stance": "recommend", "quote": "The GCC backend makes Rust for Dreamcast work", "excerpt": "The GCC backend makes Rust for Dreamcast work: https://www.dreamcast.rs/ (not relevant to Debian, but cool that it's already possible)", "context": "", "use_case": "Rust for Dreamcast target", "switched_from": "", "story": "Hard Rust requirements from May onward"}, {"id": 732507009, "item_id": 45781688, "url": "https://news.ycombinator.com/item?id=45781688", "by": "curt15", "date": "2025-11-01", "stance": "neutral", "quote": "Shouldn't the codegen_gcc project", "excerpt": "Shouldn't the codegen_gcc project[1] theoretically allow Rust to target backends that only GCC supports? [1] https://github.com/rust-lang/rustc_codegen_gcc", "context": "", "use_case": "", "switched_from": "", "story": "Hard Rust requirements from May onward"}]}