GCC Rust
lastmod 2024-11-11created 2021-01-192 edits
Features
- An alternative Rust compiler implementation for using Rust on the gcc toolchain
- Same goal as the gfortran and g++ front ends
- With it, Rust can be used instead of C in more places, including system software and the Linux kernel
- gccrs is an alternative Rust compiler being developed as part of the GCC project.
- The project aims to support Rust within the GNU Compiler Collection, targeting the same behavior as rustc.
- Its main goal is to provide an alternative way to compile Rust, especially on platforms that LLVM does not support.
- Thanks to GCC's safety features and plugins, gccrs is useful for analyzing unsafe Rust code.
- The project aims to contribute to the Rust specification effort rather than create a separate Rust-like language.
- gccrs is not trying to compete with rustc_codegen_gcc; as a separate GCC front end, it offers different benefits.
- The project emphasizes helping Rust reach more platforms without fragmenting the Rust ecosystem.
- Compiling code with gccrs requires the command-line flag -frust-incomplete-and-experimental-compiler-do-not-use, which signals its experimental status.
- gccrs communicates through GitHub and Zulip, matching the preferences of the Rust community.
- The project reuses Rust components such as polonius and rustc_parse_format to ensure correctness, and plans more reuse.
- gccrs welcomes feedback on improving its relationship with the Rust community and reducing ecosystem breakage.