3 ms·
How much of a subset of LLVM is it? Can other LLVM frontends target it easily (e.g. Rust or http://terralang.org/ http://terralang.org/)?
by kodablah 13y ago
How much of a subset of LLVM is it? Can other LLVM frontends target it easily (e.g. Rust or http://terralang.org/ http://terralang.org/)?
- pcwalton 13y agoRust could target it, but not as easily as you might think. LLVM IR is not portable (for example, here's some of the code necessary to get the calling conventions right in the LLVM IR for x86-64 [1]). The runtime and scheduler would have to be ported to the Pepper API if you wanted stuff like GC, I/O, and threads (which most Rust programs will want). [1]: https://github.com/mozilla/rust/blob/master/src/librustc/middle/trans/cabi_x86_64.rs https://github.com/mozilla/rust/blob/master/src/librustc/mid...
- vanderZwan 13y agoAndrew Wilkins is working on a Go frontend that can also target PNaCL[1], but since it's a spare time project and he just had a baby it's slowed down. So if anyone want to help him out... [1] http://blog.awilkins.id.au/2012/12/go-in-browser-llgo-does-pnacl.html http://blog.awilkins.id.au/2012/12/go-in-browser-llgo-does-p...