Convert C file to wasm, example: https://github.com/jdh8/metallic
clang --target=wasm32 -pipe -O3 -Wall -flto -I path/to/include -c ./pow.c -o ./pow.o
llvm-lto ./pow.o -o ./pow.wasm --exported-symbol=pow
wasm2wat -f ./pow.wasm
Note: can use https://webassembly.github.io/wabt/demo/wasm2wat/ to convert back to text.
Note: that for .h
files you may want to create wrappers.