Converting WASM into WAST
Learn how to convert WASM into WAST using the wasm2wat command.
We'll cover the following...
We'll cover the following...
Sometimes, for debugging or understanding, we need to know what the WASM is doing. WABT has a wasm2wat converter. It helps to convert WASM into WAST format:
Running the previous command will convert add.wasm back into WAST format and print the output in the console.
If you want to save it as a file, you can do so by using the -o flag:
This command creates a new_add.wat file.
To check the various options supported by wasm2wat, we can run the following command:
Note: Both
wasm2watand ...