3 ms·
I mean, I'm guessing here, but wouldn't simplest way be starting mid-way in the existing Rust compiler to port an intermediate language to GCC? Straight-up comp
by nickpsecurity 10y ago
I mean, I'm guessing here, but wouldn't simplest way be starting mid-way in the existing Rust compiler to port an intermediate language to GCC? Straight-up compile it to GCC C or whatever GCC does internally. That way, you get the parsing, analysis, etc for free plus any improvements they make. Lots of other languages used this approach.
- dikaiosune 10y agoI'm pretty sure mrustc isn't targeting GCC as a backend, but I'm not sure. I don't know what approach is being taken by the person working on a GCC backend, but it's entirely possible what you've described is what they're doing.
- harrytodorov 10y ago> I'm pretty sure mrustc isn't targeting GCC as a backend, but I'm not sure. I'm pretty sure your statement is somewhat paradoxical :)