From my understanding, I can compile C ++ for LLVM, and then use Emscripten, which outputs JavaScript.
From http://kripken.imtqy.com/mloc_emscripten_talk/#/11 :
C / C ++ β LLVM β Emscripten β JavaScript
How can I generate asm.js via Emscripten (I believe that what asm.js is generating at the moment), and (ASM_JS = 1 as a compilation flag) is something that forces C # or .NET to translate it to LLVM
user34537
source share