logoalt Hacker News

afdbcreid • yesterday at 6:20 PM • 2 replies • view on HN

Rust requires LLVM (or GCC) which requires C++, not just C.


Replies

VorpalWay • yesterday at 7:17 PM

LLVM is the default yes, there is also an experimental cranelift backend, which is all Rust. Not sure if it is good enough to build the compiler itself using it.

(There is also a GCC backend called codegen_gcc that is pretty far along. And a separate reimplementation of both the frontend and backend using gcc and C++, called gccrs, which is not nearly as far along.)

➕ show 1 reply
someonebaggy • yesterday at 6:40 PM

Maybe it should be rewritten in Rust then