3 ms·
Some links on the most promising effort so far, gccrs https://opensrcsec.com/open_source_security_announces_rust_gcc_funding https://opensrcsec.com/open_source
by nextaccountic 6y ago
Some links on the most promising effort so far, gccrs
https://opensrcsec.com/open_source_security_announces_rust_gcc_funding https://opensrcsec.com/open_source_security_announces_rust_g...
https://www.embecosm.com/2021/01/12/gcc-rust-how-it-can-be-achieved/ https://www.embecosm.com/2021/01/12/gcc-rust-how-it-can-be-a...
https://rust-gcc.github.io/ https://rust-gcc.github.io/
This is an entirely new frontend written in C++, that shares no code with rustc (the official rust compiler). It might be merged some day in GCC proper.
But honestly, I'm more excited for rustc_codegen_gcc:
https://github.com/antoyo/rustc_codegen_gcc https://github.com/antoyo/rustc_codegen_gcc
It adds gcc as an alternative backend of the official Rust compiler. That way it is much more feasible to stay up to date as the language evolves.
Anyway the former two don't actually work right now. The one that does work today is mrustc, or at least it works for bootstrapping rustc; it doesn't have a borrow checker though (and instead assumes the program is correct). Also, mrustc isn't based on gcc.
https://github.com/thepowersgang/mrustc https://github.com/thepowersgang/mrustc
(There's a fourth project, https://github.com/sapir/gcc-rust https://github.com/sapir/gcc-rust, but it seems abandoned)