Skip to content

Commit

Permalink
commented out debug print in asm compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
CherniyKot committed Jan 3, 2024
1 parent e433b1f commit 15c58f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/X86.lama
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ fun prologue (fLabel) {
-- Generates function epilogue
fun epilogue (env) {
var metaDef = Meta (sprintf ("\t.set\t%s_SIZE,\t%d\n", currentFunction(env), staticSize(env) * wordSize));
printf("%s: %d,%d\n", currentFunction(env), env[21], env[22]);
-- printf("%s: %d,%d\n", currentFunction(env), env[21], env[22]);
if compare (currentFunction(env), "main") == 0
then [env, singletonBuffer (Mov (ebp, esp)) <+ Pop (ebp) <+ Binop ("^", eax, eax) <+ Ret <+ metaDef]
else case pop(env) of
Expand Down Expand Up @@ -464,7 +464,7 @@ fun compile (env, code) {
foldl (
fun ([env, scode], i) {
var code = scode <+ Meta ("# " ++ showSMInsn (i) ++ "\n");
printf("%s\n", showSMInsn(i));
-- printf("%s\n", showSMInsn(i));
case i of
READ ->
case allocate(env) of
Expand Down Expand Up @@ -629,7 +629,7 @@ fun compile (env, code) {
esac
}

printf("%s\n", code.string);
-- printf("%s\n", code.string);
compile (env, code)
}

Expand Down

0 comments on commit 15c58f7

Please sign in to comment.