Skip to content

Web Assembly

Web Assembly

install wasmtime

Building

cat wasm.c
#int two() {
#  return 2;
#}
clang -target wasm32 -nostdlib -Wl,--no-entry -Wl,--export-all -o wasm.wasm wasm.c

Running

#Run a specific function in the module with arguments 1 and 2
wasmtime run --invoke add wasm32_args.wasm 1 2



wasmtime run --dir=. wasm32_wasi.wasm

Reverse Engineering

https://danielmangum.com/posts/every-byte-wasm-module/

Tutorials

https://wasmgroundup.com/