From 7418a5042471a3a7f05283d36e45b6b422d9785b Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 1 Nov 2021 14:30:30 +0100 Subject: Add x86_64 compilation for arithmetic expressions --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1d8597..581dc1a 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,12 @@ tests: $(BIN) # ./$(BIN) examples/types.bdl | diff tests/types_expected.txt - # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - +run: $(BIN) + $(BIN) example.bdl > build/example.asm + nasm -felf64 build/example.asm -o build/example.o + ld build/example.o -o build/example + @./build/example + # Remove build directory. clean: rm -rf $(BUILD_DIR) -- cgit v1.2.1