Hacker GitHub

← All repos

Rust-GCC/gccrs

View on GitHub ↗ ★ 2,971 C++

GCC Front-End for Rust

46 mentions on Hacker News by 41 people: 4 stories, 42 comments · first 2013-10-26 · latest 2026-10-14

Mentions per year 46 mentions · busiest year 2021 (14)
20082026
  1. …phase of development. Who is the OP talking to? Slow what down? Because there are people working on https://github.com/Rust-GCC/gccrs . I don't work on it, because I do what I do on my spare time and I find it more rewarding to improve the…
    comment by estebank · 2026-10-14 · in Problems with the Rust Language
  2. Other alternative Rust compilers/transpilers/grammars: https://github.com/Rust-GCC/gccrs https://github.com/rustic-compiler/rustc_codegen_c https://github.com/rrevenantt/antlr4rust
    comment by peter_d_sherman · 2026-09-30 · in mrustc – Alternative Rust Compiler
  3. …by LLVM For this, gcc-rs[1][2] is the most promising candidate. [1] https://rust-gcc.github.io/ [2] https://github.com/Rust-GCC/gccrs
  4. …be built from source. Once accepted, it will be one of the languages you get when you build GCC. https://github.com/Rust-GCC/gccrs When gccrs is ready, it will address all the above objections. Linux faces the same issues. Today, Rust is…
  5. …c, ... gcc-rs doesn't contain a lot of rust code either, it's purely other languages according to https://github.com/Rust-GCC/gccrs Fundamentally, if a tool is good and provides benefits then why not use it? You'll be met with concerns…
  6. https://github.com/Rust-GCC/gccrs/tree/master/gcc/rust There's a Rust compiler in C++ in case that's any good to you
    comment by Y_Y · 2025-12-07 · in Eurydice: a Rust to C compiler
  7. …work on getting Rust to support it rather than have our tools limited by what they can consume? https://github.com/Rust-GCC/gccrs
  8. There are multiple Rust compilers, for example - https://github.com/Rust-GCC/gccrs - https://github.com/thepowersgang/mrustc
    comment by sealeck · 2024-11-12 · in Rust Needs an Official Specification
  9. And, hopefully, Rust soon as well[1][2][3]. [1] https://rust-gcc.github.io/ [2] https://github.com/Rust-GCC/gccrs [3] https://blog.rust-lang.org/2024/11/07/gccrs-an-alternative-c...
  10. The community has been very supportive of the gccrs ( https://github.com/Rust-GCC/gccrs ) project, which is the main project to write a Rust compiler written in C.
    comment by samsartor · 2024-08-26 · in Writing a Rust compiler in C
  11. …compiles into other intermediate representations and there are several related projects: 1) gccrs ( https://github.com/Rust-GCC/gccrs ) is creating a GCC frontend for Rust that can be used with the GCC backend. 2) Cranelift (…
  12. …really subtle rules on how you treat macro invocations such as this which is not documented at all https://github.com/Rust-GCC/gccrs/blob/master/gcc/rust/expan... </rant> Some day I personally want to write a blog post about how…
    comment by philberty · 2023-04-25 · in GCC 13 and the State of Gccrs
  13. Rust-GCC has an FAQ section that lists the benefits of having a GCC frontend: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques... I'm in no way a compiler expert, but from what I understood, they specifically want to avoid…
  14. …regardless of platform, gccrs can't yet compile core or std libraries, so println! won't work ( https://github.com/Rust-GCC/gccrs/issues/1389 ). I don't think it's about what tier is supported in rustc, as that's compiled by LLVM in that…
  15. …features got prioritized due to being necessary for the kernel, such as fallible allocations. [0]: https://github.com/Rust-GCC/gccrs - monthly reports at https://thephilbert.io/category/gccrs-status-updates/ [1]:…
    comment by roblabla · 2022-09-21 · in Next steps for Rust in the kernel
  16. This does clarify that concern: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
  17. …a module in the reference implementation of rustc, while rust-gcc is a complete C++-based compiler: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
    comment by notriddle · 2022-07-11 · in GCC Rust Approved by GCC Steering Committee
  18. …LLVM frontend really carefully and do everything the same way? At a high level, this is correct: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques... > If gccrs interprets a program differently from rustc, this is considered a…
    comment by steveklabnik · 2022-07-11 · in GCC Rust Approved by GCC Steering Committee
  19. I think the GCC Front-End For Rust [1] is going to have an even larger impact going forward. [1]: https://github.com/Rust-GCC/gccrs
  20. …complementary efforts to get GCC support into the Rust ecosystem. One is a Rust frontend to GCC ( https://github.com/Rust-GCC/gccrs ) while the other is a GCC backend to the existing Rust compiler ( https://blog.antoyo.xyz/rustc_codegen_gcc…
  21. No, it is not. https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
    comment by steveklabnik · 2022-06-17 · in Adding a Rust compiler front end to GCC [video]
  22. …is a new front end to GCC (written in C++, as is typical for GCC frontends) and is developed here: https://github.com/Rust-GCC/gccrs The other project involves plugging GCC's backend into the existing rustc frontend, and is developed here:…
  23. …They're different languages but yeah, compilers are gonna disagree on some of the edges there. [1] https://github.com/Rust-GCC/gccrs [2] tangentially, Rust also avoids some UB discussion because the type system is a bit more complete in…
    comment by ThatGeoGuy · 2022-05-19 · in Rust: A Critical Retrospective
  24. Besides the standard llvm-based compiler, I know of at least two others: https://github.com/Rust-GCC/gccrs https://github.com/thepowersgang/mrustc
  25. …install`, which can be very convenient. Like all things: Multiple options are generally better. [0] https://github.com/Rust-GCC/gccrs
    comment by roblabla · 2022-04-15 · in Rustaceans at the border
  26. For proper bootstrapping I'm looking forward to gccrs ( https://github.com/Rust-GCC/gccrs ) alongside mrustc.
    comment by Vogtinator · 2022-04-01 · in Rustc_codegen_GCC can now bootstrap rustc
  27. …for AOT compilation, and a GCC frontend that parses Rust). https://lwn.net/Articles/871283/ https://github.com/Rust-GCC/gccrs https://github.com/antoyo/rustc_codegen_gcc
    comment by pabs3 · 2021-12-09 · in Rust support in the Linux kernel
  28. …have any of that exotic hardware. EDIT: oh yeah and the project itself describes this stuff here https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
    comment by steveklabnik · 2021-09-01 · in GCC Rust Monthly Report #9 August 2021
  29. I just found this issue in gccrs about strict aliasing, you might have some valuable input for it. https://github.com/Rust-GCC/gccrs/issues/653
    comment by nickitolas · 2021-09-01 · in GCC Rust Monthly Report #9 August 2021
  30. …upstream with the GNU toolchain. Please find the answers to frequently asked questions over on: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques... Two sentences like these would be more than enough to give a person passing by…
    comment by southerntofu · 2021-08-31 · in GCC Rust Monthly Report #9 August 2021
  31. …with the GNU toolchain. I'm happy that there's work on alternative Rust compilers though! [1] https://github.com/Rust-GCC/gccrs
  32. It's covered in the first few entries in the FAQ: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
    comment by gspr · 2021-06-07 · in I Support GCC-Rs
  33. https://github.com/Rust-GCC/gccrs is in progress, but I believe it works enough to be worth playing with. Note that it doesn't implement the borrow checker - the plan is to reuse rustc's borrow checker as a compiler plugin. For now, as I…
    comment by geofft · 2021-04-18 · in First steps with Rust
  34. FTR, there are some efforts to integrate GCC & Rust: https://github.com/antoyo/rustc_codegen_gcc https://github.com/Rust-GCC/gccrs https://github.com/sapir/gcc-rust/
    comment by pabs3 · 2021-03-13 · in Speed of Rust vs. C
  35. There is also a WIP rust gcc frontend: https://github.com/Rust-GCC/gccrs I wonder how these two projects compare.
  36. For what it's with, this is being worked on[1]. 1. https://github.com/Rust-GCC/gccrs
    comment by supercheetah · 2021-02-19 · in Checked C
  37. …in "exploration phase", but hopefully we'll see more independent Rust compilers in the future (e.g. https://github.com/Rust-GCC/gccrs )
    comment by flohofwoe · 2021-02-14 · in Bevy: A game engine built in Rust
  38. …might look like. Eventually, this will probably need to come to a head. [1] https://gleam.run/ [2] https://github.com/Rust-GCC/gccrs
    comment by qchris · 2021-02-11 · in Python Cryptography, Rust, and Gentoo
  39. The timeline looks rather ambitious https://github.com/Rust-GCC/gccrs/milestones
    comment by yorwba · 2021-01-10 · in GCC Rust: GCC Front-End for Rust
  40. …[1] https://github.com/thepowersgang/mrustc [2] https://github.com/sapir/gcc-rust/tree/rust [3] https://github.com/Rust-GCC/gccrs [4] https://github.com/bjorn3/rustc_codegen_cranelift
  41. …also just realized that it's not the same backend as the one written by "redbrain" here [1]. > [1] https://github.com/redbrain/gccrs
    comment by cbmuser · 2019-12-08 · in GCC-Rust: Rust frontend for GCC
  42. …priorities for me, so sadly this will have to be done by someone else if it happens at all. [1] https://github.com/redbrain/gccrs