4 ms·
Likewise I keep hoping someone will make a compile-Rust-to-portable-C story realistic also! The LLVM C backend has been revived! https://github.com/draperlabo
by haberman 12y ago
Likewise I keep hoping someone will make a compile-Rust-to-portable-C story realistic also! The LLVM C backend has been revived!
https://github.com/draperlaboratory/llvm-cbe https://github.com/draperlaboratory/llvm-cbe
http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-August/075934.html http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-August/07593...
- comex 12y agoLast October I tried using that repo to compile Rust to C and it proved to be totally broken (i.e. not Rust's fault). There have been a bunch of commits since then, so maybe it works these days... shouldn't be hard to test. However, don't expect it to generate code that's portable between architectures with different pointer widths.
- haberman 12y ago> However, don't expect it to generate code that's portable between architectures with different pointer widths. That's a limitation I can live with. If my only concession is that I have to have two builds (32/64), and everything else is portable, I'll be a very happy camper.