From 17a27d445295bbaf7c7c470b1e4648635af2f0a3 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 19 Nov 2023 19:59:53 +0200 Subject: first runnable test program + tests/pointer_literal.ek compiles down to very simple assembly that tasm can assemble and triscv run with correct results. Whopee + Did notice that void return functions should still have implicit return statements added --- src/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler.c') diff --git a/src/compiler.c b/src/compiler.c index 8801c7f..a096878 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -192,7 +192,7 @@ int compile(const char *input, const char *output) { return ret; } - ret = analyze_lifetime(ops); + ret = alloc_regs(ops); if (ret) { destroy_ops(ops); error("compilation of %s stopped due to errors", input); -- cgit v1.3