crustc: complete `rustc` in C
Show notes
The crustc project presents the entire rustc compiler translated into C. Essentially, it is C code that, when compiled with GCC and make, results in a functional rustc. This serves as a demonstration for cilly, a new toolchain that compiles Rust to C for arbitrary targets. The intelligence of cilly lies in its adaptability: it generates C code that adapts to the specific C compiler and platform, even the most obscure ones or those without LLVM/GCC support, by consulting type layouts and formats. The goal is to remove the target support barrier, bringing Rust to old or exotic hardware where only C is supported, including solving the bootstrap dilemma on platforms without C cross-compilers.
Why it matters: It opens doors for Rust on exotic hardware and legacy systems, eliminating a common barrier to its adoption and solving the bootstrap dilemma.
Sources: