This commit is contained in:
Brooke Vibber 2025-12-23 10:51:01 -08:00
commit 7a6e4b31bd
10 changed files with 989 additions and 0 deletions

19
arg-test/Makefile Normal file
View file

@ -0,0 +1,19 @@
.FAKE : all clean test
all: argy.wasm argy.wat
argy.wat : argy.wasm
"$(HOME)/src/emsdk/upstream/bin/wasm-dis" argy.wasm | tee argy.wat
argy.wasm : argy.js
argy.js : argy.c
emcc -O1 -sMODULARIZE -s'EXPORTED_FUNCTIONS=["_main","_bench_one","_bench_two","_bench_three","_bench_four","_bench_five","_bench_six","_bench_seven","_bench_eight"]' -o argy.js argy.c
clean:
rm -f argy.js
rm -f argy.wasm
rm -f argy.wat
test: argy.js argy.wasm
node test-argy.js