by Blikkentrekker · 5y ago · 0 comments
Certainly quite a bit of rustc could be cannibalized? Surely the parsing, type, and borrow checking stage or perhaps all the way to the m.i.r. could have been shared.
On the practical level, rustc is written in rust and self-hosting, so reusing code from it in gcc would mean that you needed a rust compiler as well as a c compiler to compile gcc.
Also, rustc and gcc have incompatible licenses.
I see, they want a full Rust implementation written in C++ rather than in Rust?
There is another project pursuing that approach. Both are valid strategies with different pros and cons.