Compile C # -> LLVM -> ASM.JS?

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

+7
source share
2 answers

Mono supports LLVM as a backend. However, it will probably take a lot of changes to make it compatible with Emscripten

+1
source

It seems that at the moment there is no need. Perhaps one option would be to use JSIL .

Source: https://twitter.com/migueldeicaza/status/411930995366309888

0
source

All Articles