Mercurial > lcfOS
diff python/zcc.py @ 301:6753763d3bec
merge codegen into ppci package
author | Windel Bouwman |
---|---|
date | Thu, 05 Dec 2013 17:02:38 +0100 |
parents | 158068af716c |
children | 0615b5308710 |
line wrap: on
line diff
--- a/python/zcc.py Tue Dec 03 18:00:22 2013 +0100 +++ b/python/zcc.py Thu Dec 05 17:02:38 2013 +0100 @@ -6,7 +6,7 @@ from ppci.c3 import Builder import ppci -import codegen +from ppci.codegen import CodeGenerator import outstream from utils import HexFile import target @@ -52,8 +52,8 @@ """ logging.info('Zcc started') # Front end: - c3b = Builder(diag) - cg = codegen.CodeGenerator(tg) + c3b = Builder(diag, tg) + cg = CodeGenerator(tg) # TODO: remove this arm specifics: outs.getSection('code').address = 0x08000000