7

Recently I read asm.js spec and it seems cool but is there any environment/tool to develop and test this tool or not? Is that still on spec phase only?

2 Answers 2

6

You can try it by using emscripten with ASM_JS=1 and running it in a firefox build from a side branch. Links and more instructions are in these slides about asm.js, http://kripken.github.com/mloc_emscripten_talk/#/

2
  • 1
    Note asm.js compilation is now available in Nightly
    – robertc
    Mar 26, 2013 at 14:29
  • 1
    The talk is not terribly informative regarding setup/config. Download the llvm source, download clang and put it where it asks to be in the llvm source, make and make install. Clone the emscripten repo to use the command emcc to compile c/c++ to js.
    – meawoppl
    Aug 12, 2013 at 14:10
2

Use the '-s' command line option of the compiler, like thus:

./emcc -O1 -s ASM_JS=1 tests/hello_world.c

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.