Update WASI test

extensions
Volodymyr Shymanskyy 5 years ago
parent ccf019821f
commit ef041e3a94

@ -1,24 +1,24 @@
## Compile ## Compile
```sh ```sh
wasicc -O3 wasi_printf.c -o wasi_printf.wasm wasicc -O3 test.c -o test.wasm
wasm-opt -O3 wasi_printf.wasm -o wasi_printf.wasm wasm-opt -O3 test.wasm -o test.wasm
wasm-strip wasi_printf.wasm wasm-strip test.wasm
``` ```
## Run ## Run
```sh ```sh
../../build/wasm3 wasi_printf.wasm _start ../../build/wasm3 test.wasm _start
$ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm wasi_printf.wasm $ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm test.wasm
$ENGINES_PATH/wac/wax wasi_printf.wasm $ENGINES_PATH/wac/wax test.wasm
$ENGINES_PATH/WAVM/Release/bin/wavm run wasi_printf.wasm $ENGINES_PATH/WAVM/Release/bin/wavm run test.wasm
wasmer run wasi_printf.wasm wasmer run test.wasm
wasmer-js run wasi_printf.wasm wasmer-js run test.wasm
``` ```

Loading…
Cancel
Save