From 3272b5d83d2e2167eed24748557df88bd66584ee Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 5 Jan 2018 23:42:24 +0100 Subject: There's actually a chance that, correctly stringified, this will work --- main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7577012..5588543 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,8 @@ #include #include "compiler.h" #include "node.h" +#include "regalloc.h" +#include "to_assembly.h" extern FILE *yyin; @@ -30,9 +32,14 @@ int main(int argc, char **argv) { printf("\n"); struct ir *ir = compile(root_node); - ir_print(ir, stdout); - type_cache_cleanup(); + ir_print(ir, stdout); printf("\n"); + + struct allocation *alloc = regalloc(ir); + to_assembly(ir, alloc); + allocation_delete(alloc); + + ir_print(ir, stdout); printf("\n"); return result; } -- cgit v1.2.3-54-g00ecf