diff --git a/a.out b/a.out deleted file mode 100644 index 8540d49..0000000 Binary files a/a.out and /dev/null differ diff --git a/src/codegen.c b/src/codegen.c index cbeadc0..806972e 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -680,10 +680,12 @@ int generateFunctionStart(Instruction *inst) { printdebug("generateFunctionStart failed, NULL tablenode"); return -1; } - + + //this is independent of parameters: fprintf(cg_flag, "%s:\n", getName(getTN(op1))); fprintf(cg_flag, "\tpushq\t%%rbp\n"); fprintf(cg_flag, "\tmovq\t%%rsp, %%rbp\n"); - + + //now we need to add the CGs of nodes to the CG list by doing assign from the return 0; }