1WABT(1)                   BSD General Commands Manual                  WABT(1)
2

NAME

4     wasm2wat — translate from the binary format to the text format
5

SYNOPSIS

7     wasm2wat [options] file
8

DESCRIPTION

10     wasm2wat Read a file in the WebAssembly binary format, and convert it to
11     the WebAssembly text format.
12
13     The options are as follows:
14
15     --help  Print a help message
16
17     --version
18             Print version information
19
20     -v, --verbose
21             Use multiple times for more info
22
23     -o, --output=FILENAME
24             Output file for the generated wast file, by default use stdout
25
26     -f, --fold-exprs
27             Write folded expressions where possible
28
29     --enable-exceptions
30             Enable Experimental exception handling
31
32     --disable-mutable-globals
33             Disable Import/export mutable globals
34
35     --disable-saturating-float-to-int
36             Disable Saturating float-to-int operators
37
38     --disable-sign-extension
39             Disable Sign-extension operators
40
41     --disable-simd
42             Disable SIMD support
43
44     --enable-threads
45             Enable Threading support
46
47     --enable-function-references
48             Enable Typed function references
49
50     --disable-multi-value
51             Disable Multi-value
52
53     --enable-tail-call
54             Enable Tail-call support
55
56     --disable-bulk-memory
57             Disable Bulk-memory operations
58
59     --disable-reference-types
60             Disable Reference types (externref)
61
62     --enable-annotations
63             Enable Custom annotation syntax
64
65     --enable-code-metadata
66             Enable Code metadata
67
68     --enable-gc
69             Enable Garbage collection
70
71     --enable-memory64
72             Enable 64-bit memory
73
74     --enable-multi-memory
75             Enable Multi-memory
76
77     --enable-extended-const
78             Enable Extended constant expressions
79
80     --enable-all
81             Enable all features
82
83     --inline-exports
84             Write all exports inline
85
86     --inline-imports
87             Write all imports inline
88
89     --no-debug-names
90             Ignore debug names in the binary file
91
92     --ignore-custom-section-errors
93             Ignore errors in custom sections
94
95     --generate-names
96             Give auto-generated names to non-named functions, types, etc.
97
98     --no-check
99             Don't check for invalid modules
100

EXAMPLES

102     Parse binary file test.wasm and write text file test.wast
103
104           $ wasm2wat test.wasm -o test.wat
105
106     Parse test.wasm, write test.wat, but ignore the debug names, if any
107
108           $ wasm2wat test.wasm --no-debug-names -o test.wat
109

SEE ALSO

111     wasm-decompile(1), wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1),
112     wasm-strip(1), wasm-validate(1), wasm2c(1), wast2json(1), wat-desugar(1),
113     wat2wasm(1), spectest-interp(1)
114

BUGS

116     If you find a bug, please report it at
117     https://github.com/WebAssembly/wabt/issues
118
119BSD                            February 8, 2023                            BSD
Impressum