1WABT(1) BSD General Commands Manual WABT(1)
2
4 wasm2c — convert a WebAssembly binary file to a C source and header
5
7 wasm2c [options] file
8
10 wasm2c takes a WebAssembly module and produces an equivalent C source and
11 header.
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 C source file, by default use std‐
22 out
23
24 --enable-exceptions
25 Experimental exception handling
26
27 --disable-mutable-globals
28 Import/export mutable globals
29
30 --enable-saturating-float-to-int
31 Saturating float-to-int operators
32
33 --enable-sign-extension
34 Sign-extension operators
35
36 --enable-simd
37 SIMD support
38
39 --enable-threads
40 Threading support
41
42 --no-debug-names
43 Ignore debug names in the binary file
44
46 Parse binary file test.wasm and write test.c and test.h
47
48 $ wasm2c test.wasm -o test.c
49
50 Parse test.wasm, write test.c and test.h, but ignore the debug names, if
51 any
52
53 $ wasm2c test.wasm --no-debug-names -o test.c
54
56 wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1),
57 wasm-validate(1), wasm2wat(1), wast2json(1), wat-desugar(1), wat2wasm(1),
58 spectest-interp(1)
59
61 If you find a bug, please report it at
62 .:
63 https://github.com/WebAssembly/wabt/issues
64
65BSD June 20, 2019 BSD