How to test and develop with asm.js?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 04:27:26

问题


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?


回答1:


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:


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

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


来源:https://stackoverflow.com/questions/14953351/how-to-test-and-develop-with-asm-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!