The problem would be to figure out the types in arbitrary JS, which aren't written out. Also, they can be types not present in LLVM IR. But, I am sure some subset could be made to work.
(For the asm.js subset, emscripten has/had an experimental option to compile asm.js to C, which you can then compile back to LLVM IR.) - Alon On Fri, Feb 6, 2015 at 12:40 PM, Bertrand Mollinier Toublet < [email protected]> wrote: > The idea behind, and the applications of, emscripten are extremely > interesting. I want to thank the dev team for having invested the time and > effort to develop the project to its current status. > > With emscripten as a compiled from LLVM IR to JS, it seems natural to ask > about the reverse compiling step, from JS to LLVM IR. I have been doing > some research, in this group and on the net more generally, without much > luck. > > I'm wondering if anyone here, more familiar with the matter than I am, > would be able to point me at existing projects or products that can perform > this Javascript to LLVM IR compilation? > -- > Bertrand > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
