Bootstrapping Rust with GCC
If you know one thing about me, it is that I love working on the Rust compiler. Some people kayak, travel or play guitar - and I stare at assembly, trying to figure out what I broke.
This summer, I am taking on quite a large task: bootstrapping the Rust compiler using `cg_gcc`
What does that mean? "bootstrapping" is simply a name given to the Rust compiler build process.
So, what I am really trying to do is build a Rust compiler, without using LLVM - and using GCC instead.
The bootstrap process is quite complex, and split into 3 stages.
Stage 1
First, we use a pre-existing, LLVM-based Rust compiler to build rustc , and the GCC-based codegen.
Stage 2
Then, we take that GCC-based codegen, and rebuild the Rust compiler using GCC.
... continue reading