Hacker GitHub

← All repos

rust-lang/rustc_codegen_gcc

View on GitHub ↗ ★ 1,183 Rust

libgccjit AOT codegen for rustc

21 mentions on Hacker News by 17 people: 0 stories, 21 comments · first 2021-12-08 · latest 2026-07-03

Mentions per year 21 mentions · busiest year 2022 (9)
20082026
  1. …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…
  2. …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 relies on a binary…
  3. 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
    comment by pabs3 · 2025-11-26 · in APT Rust requirement raises questions
  4. …the codegen_gcc project[1] theoretically allow Rust to target backends that only GCC supports? [1] https://github.com/rust-lang/rustc_codegen_gcc
    comment by curt15 · 2025-11-01 · in Hard Rust requirements from May onward
  5. …into a safe version. [1] https://doc.rust-lang.org/nightly/rustc/platform-support.htm... [2] https://github.com/rust-lang/rustc_codegen_gcc
  6. Then use the GCC backend. https://github.com/rust-lang/rustc_codegen_gcc
  7. …just a GCC backend will be enough. This is in fact already being worked on with rustc_codegen_gcc https://github.com/rust-lang/rustc_codegen_gcc
    comment by SkiFire13 · 2024-10-11 · in An Update on Gccrs Development
  8. …for Rust written in Rust since the current LLVM backend is written in C++. 3) rustc_codegen_gcc ( https://github.com/rust-lang/rustc_codegen_gcc ) is creating a bridge between the Rust compiler LLVM IR frontend and the GCC backend. So,…
  9. …is the more ambitious of the two, with an entirely new frontend. There is also rustc_codegen_gcc ( https://github.com/rust-lang/rustc_codegen_gcc ) that keeps the rustc frontend, and only swaps out LLVM for GCC at the codegen stage.
    comment by Georgelemental · 2023-04-25 · in GCC 13 and the State of Gccrs
  10. You can also use rustc as a frontend to GCC through rustc_codegen_gcc. https://github.com/rust-lang/rustc_codegen_gcc
  11. Why not use this instead? https://github.com/rust-lang/rustc_codegen_gcc
    comment by GrayShade · 2022-12-14 · in Rust front-end merged in GCC trunk
  12. That's rather rustc_codegen_gcc. gcc-rs is more for people who don't like LLVM and/or Rust. https://github.com/rust-lang/rustc_codegen_gcc
    comment by GrayShade · 2022-12-14 · in Rust front-end merged in GCC trunk
  13. There is also a project for rustc to use GCC instead of LLVM for codegen. https://github.com/rust-lang/rustc_codegen_gcc
    comment by pabs3 · 2022-12-14 · in Rust front-end merged in GCC trunk
  14. …- monthly reports at https://thephilbert.io/category/gccrs-status-updates/ [1]: https://github.com/rust-lang/rustc_codegen_gcc - monthly reports at https://blog.antoyo.xyz/
    comment by roblabla · 2022-09-21 · in Next steps for Rust in the kernel
  15. That is actually going to happen for rustc itself via the rustc_codegen_gcc project ( https://github.com/rust-lang/rustc_codegen_gcc ), this post is about a different project that writes a "from scratch" rust frontend/compiler for the GCC…
    comment by nickitolas · 2022-07-12 · in GCC Rust Approved by GCC Steering Committee
  16. Another related project is the libgccjit backend for rustc: https://github.com/rust-lang/rustc_codegen_gcc
  17. When GCC support [0] lands it's going to be a complete game-changer. [0] https://github.com/rust-lang/rustc_codegen_gcc
  18. …project involves plugging GCC's backend into the existing rustc frontend, and is developed here: https://github.com/rust-lang/rustc_codegen_gcc Both projects intend to eventually allow Rust code to make use of GCC. But they will likely…
  19. …that. [1] https://reviews.llvm.org/D114611 [2] https://github.com/Rahix/avr-hal/issues/124 [3] https://github.com/rust-lang/rustc_codegen_gcc
    comment by megumax · 2021-12-29 · in This Year in Embedded Rust
  20. If anyone had trouble parsing rustccggcc, it's rustc-cg-gcc, ie https://github.com/rust-lang/rustc_codegen_gcc
    comment by Tobu · 2021-12-08 · in Rust support in the Linux kernel
  21. …(through `libgccjit`, although used for ahead-of-time compilation) was merged into upstream Rust: https://github.com/rust-lang/rustc_codegen_gcc If the backend keeps progressing, we hope to soon be able to start experimenting with…
    comment by vlovich123 · 2021-12-08 · in Rust support in the Linux kernel