diff options
Diffstat (limited to 'man/wat2wasm.1')
-rw-r--r-- | man/wat2wasm.1 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/man/wat2wasm.1 b/man/wat2wasm.1 new file mode 100644 index 00000000..39ea3657 --- /dev/null +++ b/man/wat2wasm.1 @@ -0,0 +1,63 @@ +.Dd $Mdocdate$ +.Dt WABT 1 +.Os +.Sh NAME +.Nm wat2wasm +.Nd translate from WebAssembly text format to the WebAssembly binary format +.Sh SYNOPSIS +.Nm wat2wasm +.Op options +.Ar filename +.Sh DESCRIPTION +.Nm +translates from WebAssembly text format to the WebAssembly binary format. +.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 Fl debug-parser +Turn on debugging the parser of wat files +.It Fl d , Fl Fl dump-module +Print a hexdump of the module to 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 o , Fl Fl output=FILE +output wasm binary file +.It Fl r , Fl Fl relocatable +Create a relocatable wasm binary (suitable for linking with e.g. lld) +.It Fl Fl no-canonicalize-leb128s +Write all LEB128 sizes as 5-bytes instead of their minimal size +.It Fl Fl debug-names +Write debug names to the generated binary file +.It Fl Fl no-check +Don't check for invalid modules +.El +.Sh EXAMPLES + # parse and typecheck test.wat + $ wat2wasm test.wat +.sp + # parse test.wat and write to binary file test.wasm + $ wat2wasm test.wat -o test.wasm +.sp + # parse spec-test.wast, and write verbose output to stdout (including + # the meaning of every byte) + $ wat2wasm spec-test.wast -v +.Sh SEE ALSO +wasm2wat(1), wasm-objdump(1), wasm-interp(1), wat-desugar(1), wasm2c(1) +.Sh BUGS +If you find a bug, please report it at +.br +<\fBhttps://github.com/WebAssembly/wabt/issues/\fP>. |