crustc translates entire Rust compiler to C
crustc is an experimental open-source project by Michał Kostrubiec (FractalFir) that compiles the entire Rust compiler (rustc) into approximately 46 million lines of C code using the cilly backend. By targeting standard C and utilizing basic tools like GCC and make, the project serves as a proof of concept for running and compiling Rust programs on platforms that lack official LLVM support, such as Plan 9 or retro gaming hardware.
Hot take: While compiling 46 million lines of C is a brute-force approach to translation, crustc is a major milestone toward decoupling Rust from LLVM and making the language truly universal.
* **Architectural Portability:** Allows Rust compilation on targets without LLVM support by generating standard C code.
* **Bootstrapping Solution:** Provides a theoretical pathway to bootstrap rustc on new platforms using only a local C compiler.
* **Backend Versatility:** Showcases the adaptability of the cilly compiler backend, which was originally built for .NET bytecode targeting.
* **Compilation Scale:** Running gcc/make on 46 million lines of C is extremely resource-intensive, pushing standard C compilers to their scaling limits.
DISCOVERED
3h ago
2026-07-03
PUBLISHED
5h ago
2026-07-02
RELEVANCE
AUTHOR
Philpax
