1WABT(1) BSD General Commands Manual WABT(1)
2
4 wasm-decompile — translate from the binary format to readable C-like syn‐
5 tax
6
8 wasm-decompile [options] file
9
11 wasm-decompile Read a file in the WebAssembly binary format, and convert
12 it to a decompiled text file.
13
14 The options are as follows:
15
16 --help Print a help message
17
18 --version
19 Print version information
20
21 -o, --output=FILENAME
22 Output file for the decompiled file, by default use stdout
23
24 --enable-exceptions
25 Enable Experimental exception handling
26
27 --disable-mutable-globals
28 Disable Import/export mutable globals
29
30 --disable-saturating-float-to-int
31 Disable Saturating float-to-int operators
32
33 --disable-sign-extension
34 Disable Sign-extension operators
35
36 --disable-simd
37 Disable SIMD support
38
39 --enable-threads
40 Enable Threading support
41
42 --enable-function-references
43 Enable Typed function references
44
45 --disable-multi-value
46 Disable Multi-value
47
48 --enable-tail-call
49 Enable Tail-call support
50
51 --disable-bulk-memory
52 Disable Bulk-memory operations
53
54 --disable-reference-types
55 Disable Reference types (externref)
56
57 --enable-annotations
58 Enable Custom annotation syntax
59
60 --enable-code-metadata
61 Enable Code metadata
62
63 --enable-gc
64 Enable Garbage collection
65
66 --enable-memory64
67 Enable 64-bit memory
68
69 --enable-multi-memory
70 Enable Multi-memory
71
72 --enable-extended-const
73 Enable Extended constant expressions
74
75 --enable-all
76 Enable all features
77
78 --ignore-custom-section-errors
79 Ignore errors in custom sections
80
82 Parse binary file test.wasm and write text file test.dcmp
83
84 $ wasm-decompile test.wasm -o test.dcmp
85
87 wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1),
88 wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat-desugar(1),
89 wat2wasm(1), spectest-interp(1)
90
92 If you find a bug, please report it at
93 https://github.com/WebAssembly/wabt/issues
94
95BSD February 8, 2023 BSD