Tail-call optimization

This commit is contained in:
Dmitry Boulytchev 2020-03-23 00:49:20 +03:00
parent eeab48ed33
commit b1d851ff40
4 changed files with 137 additions and 94 deletions

View file

@ -9,7 +9,7 @@ check: $(TESTS)
$(TESTS): %: %.lama
@echo $@
cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
cat $@.input | LAMA=../runtime $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
cat $@.input | LAMA=../runtime $(LAMAC) -ds -s $< > $@.log && diff $@.log orig/$@.log
LAMA=../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
clean: