Reputation:
From my understanding I can compile C++ to LLVM, then use Emscripten which outputs to JavaScript.
From http://kripken.github.io/mloc_emscripten_talk/#/11:
C/C++ → LLVM → Emscripten → JavaScript
How might I generate asm.js via Emscripten (I believe that's what generates asm.js at the moment), and (ASM_JS=1 as a compile flag) is there anything that takes C# or .NET to translate it to LLVM?
Upvotes: 8
Views: 4148
Reputation: 371
It seems that for the moment there is not the interest necessary. Perhaps one option would be to use JSIL.
Source: https://twitter.com/migueldeicaza/status/411930995366309888
Upvotes: 1
Reputation: 3250
Mono supports LLVM as backend. However, it will probably require lots of changes to make it compatible with Emscripten
Upvotes: 2