From 4051dd95223f9662c78c05d09e01b925d2d99ac0 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 24 Jul 2023 11:30:07 +0100 Subject: Update Tilde to get basic "Hello World" working with `runtime.print_string` --- src/tilde_proc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tilde_proc.cpp') diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp index e75c621ee..8143c9a6e 100644 --- a/src/tilde_proc.cpp +++ b/src/tilde_proc.cpp @@ -334,8 +334,8 @@ gb_internal void cg_procedure_end(cgProcedure *p) { } bool emit_asm = false; - if (string_starts_with(p->name, str_lit("bug@"))) { - emit_asm = true; + if (string_starts_with(p->name, str_lit("runtime@_os_write"))) { + // emit_asm = true; } TB_FunctionOutput *output = tb_module_compile_function(p->module->mod, p->func, TB_ISEL_FAST, emit_asm); @@ -358,7 +358,7 @@ gb_internal void cg_procedure_generate(cgProcedure *p) { cg_procedure_end(p); if ( - // string_starts_with(p->name, str_lit("bug@")) || + string_starts_with(p->name, str_lit("runtime@_os_write")) || false ) { // IR Printing TB_Arena *arena = tb_default_arena(); -- cgit v1.2.3