After the talk about Rust during GHM 2019, we had a lively discussion about having a GCC frontend for Rust. The idea being that if GCC can correctly compile rust code, it goes a long way towards proving the correctness of many of rustc's decisions.
Also, we would be able to port Rust code to many many more architectures that LLVM just does not / can not support (example provided was the m68k). There's two things I knew about this in the past: 1. mrustc: A rust to C compiler. https://github.com/thepowersgang/mrustc The author calls it a compiler, but my understanding is that this is just a transpiler. 2. gccrs: The gccrs branch in GCC attempts to implement a rust frontend for GCC. However, from the looks of things this attempt is extremely outdated and targets a very early version of Rust. I did however come across something new today: gghttps://users.rust-lang.org/t/call-for-help-implementing-an-independent-rust-frontend-for-gcc/32163/16 They're trying to discuss this again. I would love to see this come to fruition. Just figured I'd put this out here for the others to see. -- Thanking You, Darshit Shah PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
signature.asc
Description: PGP signature
