2 ms·
Stupid question, but doesn't rust have it's own, highly praised compiler? I'm just genuinely curious - would using gcc be better under any practical circumstanc
by locusofself 4y ago
Stupid question, but doesn't rust have it's own, highly praised compiler? I'm just genuinely curious - would using gcc be better under any practical circumstance? Do they both generate low level code with/for LLVM?
- kramerger 4y agoActually, if they can provide a stable release with the most important nightly features I might pick this over rustc. The rust team don't seem to understand anything about production software, quality assurance and maintenance. Hopefully competing with a more organised compiler with TLS support that is not crippled will put some pressure on them.
- rob74 4y agoRust-GCC has an FAQ section that lists the benefits of having a GCC frontend: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Questions#benefits 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 mixing GCC and LLVM: https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Questions#why-was-adding-gcc-backend-for-rustc----rejected https://github.com/Rust-GCC/gccrs/wiki/Frequently-Asked-Ques...
- mlindner 4y agoYou can also use rustc as a frontend to GCC through rustc_codegen_gcc. https://github.com/rust-lang/rustc_codegen_gcc https://github.com/rust-lang/rustc_codegen_gcc