aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-11-19 19:59:53 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-11-19 19:59:53 +0200
commit17a27d445295bbaf7c7c470b1e4648635af2f0a3 (patch)
tree2749eacfe577afc1902826a99a4437bfc8419f05 /src/compiler.c
parent8f754f8b13e55e4bb92d72f105c5aaaba1754b7d (diff)
downloadek-17a27d445295bbaf7c7c470b1e4648635af2f0a3.tar.gz
ek-17a27d445295bbaf7c7c470b1e4648635af2f0a3.zip
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
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c2
1 files changed, 1 insertions, 1 deletions
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);