Re:Rust your ARM microcontroller
by kam on Saturday April 29, 2017 @04:55PM
(#14228685)
Nope, LLVM doesn't have a backend for the Xtensa architecture.
[ Parent
| on HN ]
Re:Rust your ARM microcontroller
by DanWaterworth on Saturday April 29, 2017 @04:58PM
(#14228699)
You could potentially go via C. https://github.com/draperlaboratory/llvm-cbe
Re:Rust your ARM microcontroller
by johncolanduoni on Sunday April 30, 2017 @02:03AM
(#14230344)
I 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.
The 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.
IIRC 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.