Javascript AssertionError:asm.js需要-O1或更高版本

Javascript AssertionError:asm.js需要-O1或更高版本,javascript,emscripten,asm.js,Javascript,Emscripten,Asm.js,我刚刚启动了asm.js,并在某一点上卡住了。我已经安装了emscripten、clang和node js,我的c程序也可以通过以下命令使用emscripten正常运行: ./emcc你好_world.c ./emcc hello_world.c-o hello_world.html 但是,当我尝试使用asm运行此文件时,它会显示以下命令的插入错误: /emcc-01-s ASM\u JS=1 hello\u world.c 回溯(最近一次呼叫最后一次): 文件“/emcc”,第1219行,在

我刚刚启动了asm.js,并在某一点上卡住了。我已经安装了emscripten、clang和node js,我的c程序也可以通过以下命令使用emscripten正常运行:

./emcc你好_world.c

./emcc hello_world.c-o hello_world.html

但是,当我尝试使用asm运行此文件时,它会显示以下命令的插入错误:

/emcc-01-s ASM\u JS=1 hello\u world.c

回溯(最近一次呼叫最后一次):
文件“/emcc”,第1219行,在
断言opt_level>=1或fastcomp,'asm.js需要-O1或更高
AssertionError:asm.js需要-O1或更高版本
那么如何解决这个错误呢


,提前谢谢

这样做应该可以

./emcc -02 -s ASM_JS=1 hello_world.c
./emcc -02 -s ASM_JS=1 hello_world.c