Re:Asm.js: a strict subset of js for compilers – working draft
by dochtman on Friday February 15, 2013 @05:07PM
(#5228964)
So will there be code to turn LLVM IR into asm.js stuff? That would be pretty awesome (and a nice way to make Emscripten more accessible to other languages?).
[ Parent
| on HN ]
Re:Asm.js: a strict subset of js for compilers – working draft
by azakai on Saturday February 16, 2013 @03:13AM
(#5230859)
> So will there be code to turn LLVM IR into asm.js stuff?
There already is, that is precisely what emscripten does when run with the ASM_JS=1 flag set. Emscripten's input is LLVM IR, not C or C++. (Although, it has been mostly tested on LLVM IR generated from clang that was given C or C++.)