Oh, sorry for the confusion: this is about rustc_codegen_gcc
which is a codegen plugin for rustc
that uses libgccjit
to generate the object files via GCC instead of LLVM, so it still requires rustc
. There’s another project that is a GCC frontend, called gccrs.
Also, bootstrap is overloaded: in this case, a full bootstrap means that we can compile the Rust compiler with rustc_codegen_gcc
, producing a stage-2 compiler, then recompile the Rust compiler with this stage-2 compiler to get a stage-3 compiler and those 2 compares as equal.
- 2 Posts
- 3 Comments
Joined 2 years ago
Cake day: September 1st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
What do you think it means?
Well, we can generate code for targets not supported by LLVM, but it is not trivial to setup (we hope to get rustup support in the coming months to make this easier) and most GCC targets won’t pass as many tests as x86-64 with rustc_codegen_gcc. There’s some info in the wiki about some targets that people tried.
It is an optional goal for the Google Summer of Code to bootstrap the rust compiler on other platforms, so we might be able to get a working
rustc
for new platforms by the end of the summer.