4 ms·
I take it Rust is not supported on ESP8266 yet?
by kirillkh 9y ago
I take it Rust is not supported on ESP8266 yet?
- kam 9y agoNope, LLVM doesn't have a backend for the Xtensa architecture.
- DanWaterworth 9y agoYou could potentially go via C. https://github.com/draperlaboratory/llvm-cbe https://github.com/draperlaboratory/llvm-cbe
- wyldfire 9y agoIIRC the C backend lags LLVM pretty far. Thankfully, rust tries to be compatible among a few different generations of LLVM, so maybe it's feasible.
- sesutton 9y agoLooks dead. No commits for almost 2 years.
- johncolanduoni 9y agoI suspect you'd be much better off with a Rust MIR -> C compiler. Rust's memory and execution model is much closer to C than C is to LLVM.
- adrianN 9y agoThe C backend was expelled from LLVM several years ago because it was too buggy and nobody wanted to fix it and since then has hardly been updated. That doesn't seem like a very pleasant route.
- MrBuddyCasino 9y agoSome Espressif guy is said to be working on a backend for LLVM, but I wouldn't hold my breath.