mirror of
https://github.com/remko/waforth
synced 2025-01-30 08:34:58 +01:00
Add assembled file
This commit is contained in:
parent
7bac62308a
commit
e49accd12c
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ dist/
|
|||
*.wasm.hex
|
||||
*.tmp
|
||||
*.bin
|
||||
*.assembled.wat
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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 $@ $<
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue