From 747dd0f79961e904adbfab5f2372cb99f46fd7eb Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 1 Oct 2018 21:48:32 +0530 Subject: [PATCH] wat2wasm: add page (#2359) --- pages/common/wat2wasm.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/wat2wasm.md diff --git a/pages/common/wat2wasm.md b/pages/common/wat2wasm.md new file mode 100644 index 000000000..fcbec72ed --- /dev/null +++ b/pages/common/wat2wasm.md @@ -0,0 +1,15 @@ +# wat2wasm + +> Convert a file from the WebAssembly text format to the binary format. + +- Parse and check a file for errors: + +`wat2wasm {{file.wat}}` + +- Write the output binary to a given file: + +`wat2wasm {{file.wat}} -o {{file.wasm}}` + +- Display simplified representation of every byte: + +`wat2wasm -v {{file.wat}}`