News for hackers. Stuff that matters.
Re:C as an intermediate language (2012) by Rusky on Saturday January 20, 2018 @07:15AM (#16193094)
The language itself isn't coupled to LLVM outside of some underspecified details around things like unsafe and the memory model, which will eventually be better-defined.

The compiler has historically been fairly strongly tied to LLVM. This is changing for several reasons as the compiler is refactored, which should enable alternative backends like directly generating C or even plugging directly into GCC.

There is also an LLVM backend for generating C, at various levels of maintenance, that might be made to work.

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.
Re:C as an intermediate language (2012) by pjmlp on Saturday January 20, 2018 @02:23PM (#16194925)
Interesting, thanks for point it out.