2014-01-10 120 views
0

我刚启动asm.js并陷入一点。我安装emscripten,铛和节点JS已经和我的C程序也运行良好,与此命令emscripten:AssertionError:asm.js需要-O1或更高版本

./emcc hello_world.c

./emcc hello_world.c -o hello_world.html

,但是当我试图与ASM运行这个文件,它为我用这个命令插入错误:

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

Traceback (most recent call last): 
File "./emcc", line 1219, in <module> 
assert opt_level >= 1 or fastcomp, 'asm.js requires -O1 or above 
AssertionError: asm.js requires -O1 or above 

那么如何解决这个问题?

,提前

回答

0

由于做

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

时仍无法正常工作要细.. – iOSGhost

相关问题