diff options
Diffstat (limited to 'mips.c')
-rw-r--r-- | mips.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -156,7 +156,9 @@ int mips_to_reg(COpr_t opr, int reg0) { } else if (opr->kind == IMMF) { - printf("\tla $%d, _func_%s\n", reg0, opr->info.str); + printf("\tla $%d, %s%s\n", reg0, + strcmp(opr->info.str, "main") ? "_func_" : "", + opr->info.str); return reg0; } if (opr->reg != -1) |