RIIR
RIIR copied to clipboard
Rewrite Rust in Rust
https://github.com/rust-lang/rust/issues/61013
Why Rust uses LLVM? It is written in C++. Why rust isn't completely self-hosted?
Oh dear...
But ust is already written in rust. It only uses an LLVM backend, which doesn't really matter.
So what I am hearing is we need to rewrite LLVM in rust...
Way ahead of you. https://www.reddit.com/r/rust/comments/5z2yvw/why_not_rewrite_llvm_in_rust/
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?)
Does Redox have linkers in Rust?
No, it uses ld from binutils.