README.md 477 B

ZIWA = Zig + WASM, example

export PATH=/home/e/.zig:$PATH


$ zig version
0.13.0

 -O Debug
 -O ReleaseSafe
 -O ReleaseSmall
 -O ReleaseFast

$ zig build-exe add_two.zig -target wasm32-freestanding -fno-entry --export=add_two
$ zig build-exe add_two.zig -O ReleaseFast -target wasm32-freestanding -fno-entry --export=add_two


$ ls -alh add_two.wasm
$ ~/git/wabt/build/wasm-decompile add_two.wasm -o add_two.txt


$ python3 -m http.server
// http://0.0.0.0:8000/