|
|
|
|
|
by skitter
1280 days ago
|
|
I have asked this question before, but why write an entirely new frontend, which is an enormous task if you want to reach a similar quality to rustc?
rustc_codegen_gcc¹ adds gcc as a backend to rustc alongside llvm, miri and (wip) cranelift. As a result, it always works with the newest version of rust and is already nearly complete after less work. ¹https://github.com/rust-lang/rust/tree/master/compiler/rustc... |
|
Having two independent implementations is good for finding code depending on compiler bugs. The development will also highlight where the Rust language is not documented/specified enough yet.
The GCC implementation may end up with a different design, and perhaps faster compile times, or at least we'll know whether Rust is inherently slow to compile, or is that just rustc. Rustc supporting multiple back-ends can't have as close integration with GCC's back-end as GCC's own front-end.