forked from Mirrors/wasm3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
.. | ||
0.txt | 5 years ago | |
README.md | 5 years ago | |
test-opt.wasm | 5 years ago | |
test.c | 5 years ago | |
test.wasm | 5 years ago | |
test_native_vs_raw.c | 5 years ago | |
test_native_vs_raw.wasm | 5 years ago | |
wasm_api.h | 5 years ago | |
wasm_api.syms | 5 years ago |
README.md
Compile
wasicc -O3 test.c -o test.wasm
wasm-opt -O3 test.wasm -o test-opt.wasm
wasm-strip test-opt.wasm
wasicc -O3 test_native_vs_raw.c -o test_native_vs_raw.wasm -Wl,--allow-undefined-file=wasm_api.syms
wasm-opt -O3 test_native_vs_raw.wasm -o test_native_vs_raw.wasm
wasm-strip test_native_vs_raw.wasm
Run
../../build/wasm3 test.wasm
$ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm test.wasm
$ENGINES_PATH/wac/wax test.wasm
$ENGINES_PATH/WAVM/Release/bin/wavm run test.wasm
wasmer run test.wasm
wasmer-js run test.wasm