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
20082026
-
…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 -
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 -
…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
comment by xvilka · 2026-07-03 · in crustc: entirety of `rustc`, translated to C -
…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…
comment by LeFantome · 2026-02-04 · in Rust in the NetBSD Kernel, and other odd decisions -
…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…
comment by Xylakant · 2025-12-10 · in Rust in the kernel is no longer experimental -
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 -
…work on getting Rust to support it rather than have our tools limited by what they can consume? https://github.com/Rust-GCC/gccrs
comment by antihero · 2025-09-20 · in Git: Introduce Rust and announce it will become mandatory in the build system -
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 -
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...
comment by xvilka · 2024-11-08 · in QNX is now free for anything non-commercial, plus there's an RPi image -
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 -
…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 (…
comment by thesuperbigfrog · 2024-03-19 · in Ask HN: Why rust cannot use the same compiler back end as mojo? -
…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 -
▲ 2
Break rust Easter Egg Merged Into gccrsstory by TheBrokenRail · 2023-04-17 · 0 comments
-
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…
comment by rob74 · 2022-12-20 · in GCC now includes Modula-2 and Rust. Do they work on OpenBSD? -
…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…
comment by nevi-me · 2022-12-19 · in GCC now includes Modula-2 and Rust. Do they work on OpenBSD? -
…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 -
This does clarify that concern: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
comment by guipsp · 2022-07-12 · in GCC Rust Approved by GCC Steering Committee -
…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 -
…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 -
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
comment by gkbrk · 2022-06-27 · in Memory safety for the world’s largest software project -
…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…
comment by nindalf · 2022-06-23 · in Linus Torvalds: Rust for the Kernel Could Possibly Be Merged for Linux 5.20 -
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] -
…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:…
comment by kibwen · 2022-06-17 · in Adding a Rust compiler front end to GCC [video] -
…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 -
Besides the standard llvm-based compiler, I know of at least two others: https://github.com/Rust-GCC/gccrs https://github.com/thepowersgang/mrustc
comment by ______-_-______ · 2022-05-03 · in Will Hare replace C? Or Rust? Or Zig? Or anything else? -
…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 -
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 -
…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 -
…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 -
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 -
…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 -
…with the GNU toolchain. I'm happy that there's work on alternative Rust compilers though! [1] https://github.com/Rust-GCC/gccrs
comment by htgb · 2021-08-31 · in GCC Rust Monthly Report #9 August 2021 -
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 -
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 -
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 -
There is also a WIP rust gcc frontend: https://github.com/Rust-GCC/gccrs I wonder how these two projects compare.
comment by xucheng · 2021-02-28 · in mrustc: In-progress alternative Rust compiler (to C) -
…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 -
…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 -
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 -
▲ 312
GCC Rust: GCC Front-End for Ruststory by varbhat · 2021-01-10 · 173 comments
-
▲ 8
GCCrs: A Rust Frontend for GCCstory by ibraheemdev · 2020-12-17 · 4 comments
-
…[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
comment by karavelov · 2020-11-28 · in AWS hires Rust compiler team co-lead Felix Klock -
…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 -
…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
comment by kerkeslager · 2016-07-08 · in Corrode: C to Rust translator written in Haskell -
▲ 2
Rust Front-End to GCCstory by adamnemecek · 2013-10-26 · 0 comments