5 ms·
Doesn't targeting LLVM get you this kind of flexibility "for free"?
by Tloewald 12y ago
Doesn't targeting LLVM get you this kind of flexibility "for free"?
- exDM69 12y agoYes and no. It can help with different target backends (including JavaScript, not sure about JVM or .NET) but you still have to do work to make sure that the calling conventions of your language and the target's match.
- Tloewald 12y agoSure, but AFAIK many/most of the "supports Javascript" languages out there rely on emscripten, so LLVM is involved anyway. By its nature, LLVM gives you more flexibility in the long term than VMs that were intended as a final destination.
- exDM69 12y ago> Sure, but AFAIK many/most of the "supports Javascript" languages out there rely on emscripten, so LLVM is involved anyway. Yes, yes. LLVM definitely helps here. But it doesn't come "for free", which is what the GP post asked. You still need some "glue" code to make it work.