1WABT(1) BSD General Commands Manual WABT(1)
2
4 wasm2wat — translate from the binary format to the text format
5
7 wasm2wat [options] file
8
10 wasm2wat does the inverse of wat2wasm, translate from the binary format
11 back to the text format (also known as a .wat).
12
13 The options are as follows:
14
15 -v, --verbose
16 Use multiple times for more info
17
18 --help Print a help message
19
20 -o, --output=FILENAME
21 Output file for the generated wast file, by default use stdout
22
23 -f, --fold-exprs
24 Write folded expressions where possible
25
26 --enable-exceptions
27 Experimental exception handling
28
29 --disable-mutable-globals
30 Import/export mutable globals
31
32 --enable-saturating-float-to-int
33 Saturating float-to-int operators
34
35 --enable-sign-extension
36 Sign-extension operators
37
38 --disable-simd
39 SIMD support
40
41 --enable-threads
42 Threading support
43
44 --inline-exports
45 Write all exports inline
46
47 --inline-imports
48 Write all imports inline
49
50 --no-debug-names
51 Ignore debug names in the binary file
52
53 --generate-names
54 Give auto-generated names to non-named functions, types, etc.
55
56 --no-check
57 Don't check for invalid modules
58
60 Parse binary file test.wasm and write text file test.wast
61
62 $ wasm2wat test.wasm -o test.wat
63
64 Parse test.wasm, write test.wat, but ignore the debug names, if any
65
66 $ wasm2wat test.wasm --no-debug-names -o test.wat
67
69 wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1),
70 wasm-validate(1), wasm2c(1), wast2json(1), wat-desugar(1), wat2wasm(1),
71 spectest-interp(1)
72
74 If you find a bug, please report it at
75 https://github.com/WebAssembly/wabt/issues
76
77BSD July 21, 2022 BSD