crustc: entirety of `rustc`, translated to C
1–10 of 99 posts
Re: crustc: entirety of `rustc`, translated to C
#2Re: crustc: entirety of `rustc`, translated to C
#3What a shame. I would've read an article about this.
Re: crustc: entirety of `rustc`, translated to C
#4The landing page mentions Plan 9 as one of the systems.
Re: crustc: entirety of `rustc`, translated to C
#5I wonder how the performance looks like, because this can be interesting even for non-porting reasons ;)
Re: crustc: entirety of `rustc`, translated to C
#6Re: crustc: entirety of `rustc`, translated to C
#7Gotta respect the dedication to a niche interest.
> The primary goal of this is support for old/obscure hardware with no LLVM/GCC support.
I remember reading about the bootstrapping question, how it typically requires a Rust compiler to build the Rust compiler from source. https://bootstrapping.miraheze.org/wiki/Bootstrapping_Specif...
Oh, but I see there's a C++ implementation of the Rust compiler. https://github.com/thepowersgang/mrustc
Anyway, this part sounds useful too, that crustc can compile across network and devices.
> You build a small C server on your Blorbo OS, run rustc on some normal platform like Linux, and let cilly talk over the wire.
Re: crustc: entirety of `rustc`, translated to C
#8Use crustc to compile the rust source code, producing a new compiler. Then use this new compiler and the official rustc binary, both with deterministic flags, to compile the rust source code again. The two outputs should match bit for bit.
Re: crustc: entirety of `rustc`, translated to C
#9I know some folks within the bootstrappable OS projects community are on Hackernews and I hope that they could take a look at this. I feel as if this project could drastically shrink down the efforts needed to get a working rust compiler in a bootstrappable manner.
Re: crustc: entirety of `rustc`, translated to C
#10Excited to see the compiler implementation when it's out -- a lot to learn from.