Re:C as an intermediate language (2012)
by pjmlp on Saturday January 20, 2018 @11:06AM
(#16193802)
A very long term project could be to eventually make the Rust compiler full Rust based.
However that would not make much sense from engineering point of view, too many years of optimization algorithms, tooling and supported architectures have been spent into gcc and LLVM backends just to thrown them away in name of purity.
Re:C as an intermediate language (2012)
by Rusky on Saturday January 20, 2018 @02:02PM
(#16194799)
There actually is work going on in that direction. The Cretonne code generator is written in Rust, and designed to support WebAssembly. It would also work as a fast rustc backend for debug builds on the few platforms it supports.
However that would not make much sense from engineering point of view, too many years of optimization algorithms, tooling and supported architectures have been spent into gcc and LLVM backends just to thrown them away in name of purity.