summaryrefslogtreecommitdiff
path: root/man/wasm2c.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/wasm2c.1')
-rw-r--r--man/wasm2c.150
1 files changed, 50 insertions, 0 deletions
diff --git a/man/wasm2c.1 b/man/wasm2c.1
new file mode 100644
index 00000000..18c1a9a3
--- /dev/null
+++ b/man/wasm2c.1
@@ -0,0 +1,50 @@
+.Dd $Mdocdate$
+.Dt WABT 1
+.Os
+.Sh NAME
+.Nm wasm2c
+.Nd convert a WebAssembly binary file to a C source and header
+.Sh SYNOPSIS
+.Nm wasm2c
+.Op options
+.Ar filename
+.Sh DESCRIPTION
+.Nm
+takes a WebAssembly module and produces an equivalent C source and header.
+.Pp
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl v , Fl Fl verbose
+Use multiple times for more info
+.It Fl Fl help
+Print a help message
+.It Fl o , Fl Fl output=FILENAME
+Output file for the generated C source file, by default use stdout
+.It Fl Fl enable-exceptions
+Experimental exception handling
+.It Fl Fl disable-mutable-globals
+Import/export mutable globals
+.It Fl Fl enable-saturating-float-to-int
+Saturating float-to-int operators
+.It Fl Fl enable-sign-extension
+Sign-extension operators
+.It Fl Fl enable-simd
+SIMD support
+.It Fl Fl enable-threads
+Threading support
+.It Fl Fl no-debug-names
+Ignore debug names in the binary file
+.El
+.Sh EXAMPLES
+ # parse binary file test.wasm and write test.c and test.h
+ $ wasm2c test.wasm -o test.c
+.sp
+ # parse test.wasm, write test.c and test.h, but ignore the debug names,
+ # if any
+ $ wasm2c test.wasm --no-debug-names -o test.c
+.Sh SEE ALSO
+wat2wasm(1), wasm2wat(1), wasm-objdump(1), wasm-interp(1), wat-desugar(1)
+.Sh BUGS
+If you find a bug, please report it at
+.br
+<\fBhttps://github.com/WebAssembly/wabt/issues/\fP>.