WABT(1) | General Commands Manual | WABT(1) |
wasm-interp
—
wasm-interp |
[options] file |
wasm-interp
decodes and runs a WebAssembly binary file
using a stack-based interpreter.
The options are as follows:
-v
,
-
-verbose
-
-help
-
-enable-exceptions
-
-disable-mutable-globals
-
-enable-saturating-float-to-int
-
-enable-sign-extension
-
-disable-simd
-
-enable-threads
-V
,
-
-value-stack-size=SIZE
-C
,
-
-call-stack-size=SIZE
-t
,
-
-trace
-
-run-all-exports
-
-host-print
$ wasm-interp test.wasm
Parse test.wasm and run all its exported functions
$ wasm-interp test.wasm
--run-all-exports
Parse test.wasm, run the exported functions and trace the output
$ wasm-interp test.wasm
--run-all-exports --trace
Parse test.wasm and run all its exported functions, setting the value stack size to 100 elements
$ wasm-interp test.wasm -V 100
--run-all-exports
October 7, 2021 | Debian |