4 ms·
Rustc is based on LLVM. A GCC backend would target more architectures and be somewhat more optimized. Plus, a different implementation of a compiler frontend is
by bestouff 5y ago
Rustc is based on LLVM. A GCC backend would target more architectures and be somewhat more optimized. Plus, a different implementation of a compiler frontend is, for some, a good thing to have for a language.
- volta83 5y agorustc is backend agnostic, and currently has: an LLVM backend, a Cretonne backend, and a GCC backend. So rustc can already target _more_ architectures than this new GCC frontend, because it supports LLVM and Cretonne.
- PoignardAzur 5y ago> a Cretonne backend I think you mean Cranelift?
- volta83 5y agoOops, yes, Cretonne was renamed to Cranelift a while ago. For some reason I still call it Cretonne.
- bestouff 5y agoFor now the only production-ready backend is the historical LLVM backends.