3 ms·
You could potentially go via C. https://github.com/draperlaboratory/llvm-cbe https://github.com/draperlaboratory/llvm-cbe
by DanWaterworth 9y ago
You 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.