From 605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Sat, 19 Sep 2020 21:22:41 +0200 Subject: initial work towards translating wasm to stack machine (with a provisional bench) --- Makefile.util | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile.util') diff --git a/Makefile.util b/Makefile.util index 7bdc584..02ad5a3 100644 --- a/Makefile.util +++ b/Makefile.util @@ -1,10 +1,10 @@ FILE_LINES = `grep -E '^[[:space:]]*[^[:space:]/]' -c $(1)` -ifdef PROJ_DIR -vpath tclasm.tcl $(PROJ_DIR) -endif +%.mem : $(PROJ_DIR)/tclasm.tcl %.s.tcl + tclsh $^ > $@ -vpath tclasm.tcl . +%.mem : $(PROJ_DIR)/tools/wasm_compile %.wasm + $^ > $@ -%.mem : tclasm.tcl %.s.tcl - tclsh $^ > $@ +%.wasm : %.wat + $(WAT2WASM) $< -o $@ -- cgit v1.2.3