-
write .c file test.c for example
-
use command
emcc test.c -Os -s WASM=1 -s SIDE_MODULE=1 -o test.wasm
to generate wasm file -
use command
wasm2wat test.c > test.wast
generate wast file
##WAST Syntax
https://github.com/WebAssembly/spec/blob/master/interpreter/README.md#s-expression-syntax