diff python/zcc.py @ 219:1fa3e0050b49

Expanded ad hoc code generator
author Windel Bouwman
date Sat, 06 Jul 2013 12:38:09 +0200
parents 494828a7adf1
children 81752b0f85a5
line wrap: on
line diff
--- a/python/zcc.py	Fri Jul 05 15:30:22 2013 +0200
+++ b/python/zcc.py	Sat Jul 06 12:38:09 2013 +0200
@@ -3,6 +3,7 @@
 import sys, argparse
 import c3, ppci, codegen
 import codegenarm
+from transform import CleanPass
 import outstream
 
 # Parse arguments:
@@ -24,9 +25,12 @@
         diag.printErrors(src)
         sys.exit(1)
 
+    # Optimization passes:
+    cp = CleanPass()
+    cp.run(ircode)
+
     if args.dumpir:
         ircode.dump()
-
     # Code generation:
 
     #cg = codegen.CodeGenerator(arm_cm3.armtarget)