Update README.md (#18)

This commit is contained in:
0xflotus 2019-05-11 14:36:20 +02:00 committed by Wang Xin
parent 108254974f
commit 31de47bd92

View File

@ -86,7 +86,7 @@ emsdk install latest
emsdk activate latest emsdk activate latest
``` ```
add ```./emsdk_env.sh``` into the path to ease future use, or source it everytime. add ```./emsdk_env.sh``` into the path to ease future use, or source it everytime.
The Emscripten website provides other installtion methods beyond Linux. The Emscripten website provides other installation methods beyond Linux.
todo: user should copy the app-libs folder into project and include and build. todo: user should copy the app-libs folder into project and include and build.
@ -116,7 +116,7 @@ int main(int argc, char **argv)
return 0; return 0;
} }
``` ```
Use the emcc commmand below to build the WASM C source code into the WASM binary. Use the emcc command below to build the WASM C source code into the WASM binary.
``` Bash ``` Bash
emcc -g -O3 *.c -s WASM=1 -s SIDE_MODULE=1 -s ASSERTIONS=1 -s STACK_OVERFLOW_CHECK=2 \ emcc -g -O3 *.c -s WASM=1 -s SIDE_MODULE=1 -s ASSERTIONS=1 -s STACK_OVERFLOW_CHECK=2 \
-s TOTAL_MEMORY=65536 -s TOTAL_STACK=4096 -o test.wasm -s TOTAL_MEMORY=65536 -s TOTAL_STACK=4096 -o test.wasm