Add assembled file

This commit is contained in:
Remko Tronçon 2019-03-11 16:34:15 +01:00
parent 7bac62308a
commit e49accd12c
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ dist/
*.wasm.hex
*.tmp
*.bin
*.assembled.wat

View file

@ -1,3 +1,4 @@
WASM2WAT=wasm2wat
WAT2WASM=wat2wasm
WAT2WASM_FLAGS=
ifeq ($(DEBUG),1)
@ -18,6 +19,9 @@ src/waforth.wasm: src/waforth.wat dist
racket -f $< > src/waforth.wat.tmp
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ src/waforth.wat.tmp
src/waforth.assembled.wat: src/waforth.wasm
$(WASM2WAT) --fold-exprs --inline-imports --inline-exports -o $@ $<
tests/benchmarks/sieve-vanilla.wasm: tests/benchmarks/sieve-vanilla.wat
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<