RIIR icon indicating copy to clipboard operation
RIIR copied to clipboard

Rewrite Rust in Rust

Open TylerReid opened this issue 5 years ago • 7 comments

https://github.com/rust-lang/rust/issues/61013

Why Rust uses LLVM? It is written in C++. Why rust isn't completely self-hosted?

TylerReid avatar Jun 07 '19 17:06 TylerReid

Oh dear...

Beyarz avatar Jun 07 '19 18:06 Beyarz

But ust is already written in rust. It only uses an LLVM backend, which doesn't really matter.

porky11 avatar Jun 07 '19 18:06 porky11

So what I am hearing is we need to rewrite LLVM in rust...

TylerReid avatar Jun 07 '19 18:06 TylerReid

Way ahead of you. https://www.reddit.com/r/rust/comments/5z2yvw/why_not_rewrite_llvm_in_rust/

brightly-salty avatar Dec 18 '20 16:12 brightly-salty

Current status of Rewriting Rust in Rust

  • [x] Rust compiler: https://github.com/rust-lang/rust/
  • [x] Rust compiler backend: https://github.com/bjorn3/rustc_codegen_cranelift/
  • [ ] libc: https://gitlab.redox-os.org/redox-os/relibc/ (Needs to be tested for bootstrapping rustc. Only supports Redox OS and Linux.)
  • [ ] Linker: TBD (Any volunteers?)

bjorn3 avatar Jun 03 '21 10:06 bjorn3

Does Redox have linkers in Rust?

SOF3 avatar Jun 03 '21 14:06 SOF3

No, it uses ld from binutils.

bjorn3 avatar Jun 03 '21 14:06 bjorn3