diff --git a/src/dk/camelot64/kickc/CompileLog.java b/src/dk/camelot64/kickc/CompileLog.java index 770a7f37e..02a112573 100644 --- a/src/dk/camelot64/kickc/CompileLog.java +++ b/src/dk/camelot64/kickc/CompileLog.java @@ -12,7 +12,7 @@ public class CompileLog { public void append(String msg) { log.append(msg); log.append("\n"); - System.out.printf(msg+"\n"); + //System.out.printf(msg+"\n"); } public StringBuilder getLog() { diff --git a/src/dk/camelot64/kickc/Compiler.java b/src/dk/camelot64/kickc/Compiler.java index 5a9cb74f1..9ebff1c3d 100644 --- a/src/dk/camelot64/kickc/Compiler.java +++ b/src/dk/camelot64/kickc/Compiler.java @@ -153,6 +153,7 @@ public class Compiler { Pass1EliminateEmptyBlocks pass1EliminateEmptyBlocks = new Pass1EliminateEmptyBlocks(program, log); boolean blockEliminated = pass1EliminateEmptyBlocks.eliminate(); if(blockEliminated) { + log.append("CONTROL FLOW GRAPH"); log.append(program.getGraph().toString(program.getScope())); } diff --git a/src/dk/camelot64/kickc/test/ref/bresenham.log b/src/dk/camelot64/kickc/test/ref/bresenham.log index 1a1382b09..5f3cd4688 100644 --- a/src/dk/camelot64/kickc/test/ref/bresenham.log +++ b/src/dk/camelot64/kickc/test/ref/bresenham.log @@ -152,6 +152,7 @@ INITIAL CONTROL FLOW GRAPH Removing empty block @4 Removing empty block @5 Removing empty block @6 +CONTROL FLOW GRAPH @BEGIN: from (byte) STAR ← (byte) 81 (byte[1000]) SCREEN ← (word) 1024 diff --git a/src/dk/camelot64/kickc/test/ref/flipper-rex2.log b/src/dk/camelot64/kickc/test/ref/flipper-rex2.log index 8ff84827a..a1f10027c 100644 --- a/src/dk/camelot64/kickc/test/ref/flipper-rex2.log +++ b/src/dk/camelot64/kickc/test/ref/flipper-rex2.log @@ -369,6 +369,7 @@ Removing empty block flip::@6 Removing empty block @3 Removing empty block plot::@4 Removing empty block @4 +CONTROL FLOW GRAPH @BEGIN: from (byte[1000]) SCREEN ← (word) 1024 (byte[256]) buffer1 ← (word) 4096 diff --git a/src/dk/camelot64/kickc/test/ref/loopmin.log b/src/dk/camelot64/kickc/test/ref/loopmin.log index e8d8d7a17..f5ca4c72a 100644 --- a/src/dk/camelot64/kickc/test/ref/loopmin.log +++ b/src/dk/camelot64/kickc/test/ref/loopmin.log @@ -61,6 +61,7 @@ INITIAL CONTROL FLOW GRAPH Removing empty block @4 Removing empty block @5 Removing empty block @6 +CONTROL FLOW GRAPH @BEGIN: from (byte) i ← (byte) 10 (byte) s ← (byte) 0 diff --git a/src/dk/camelot64/kickc/test/ref/minus.log b/src/dk/camelot64/kickc/test/ref/minus.log index 894ee61f0..9eec356ba 100644 --- a/src/dk/camelot64/kickc/test/ref/minus.log +++ b/src/dk/camelot64/kickc/test/ref/minus.log @@ -45,6 +45,7 @@ INITIAL CONTROL FLOW GRAPH @END: from @2 Removing empty block @2 +CONTROL FLOW GRAPH @BEGIN: from (byte[16]) p ← (word) 4352 (byte) i ← (byte) 5 diff --git a/src/dk/camelot64/kickc/test/ref/summin.log b/src/dk/camelot64/kickc/test/ref/summin.log index d42ec0cbb..e42dc8d9a 100644 --- a/src/dk/camelot64/kickc/test/ref/summin.log +++ b/src/dk/camelot64/kickc/test/ref/summin.log @@ -54,6 +54,7 @@ sum::@1: from Removing empty block sum::@1 Removing empty block @1 +CONTROL FLOW GRAPH @BEGIN: from (byte~) $0 ← call sum (byte) 1 (byte) 2 (byte) s1 ← (byte~) $0