Mercurial > lcfOS
comparison python/zcc.py @ 258:04c19282a5aa
Added register allocator
author | Windel Bouwman |
---|---|
date | Mon, 05 Aug 2013 19:46:11 +0200 |
parents | 7416c923a02a |
children | e64bae57cda8 |
comparison
equal
deleted
inserted
replaced
257:703321743e8a | 258:04c19282a5aa |
---|---|
43 # Code generation: | 43 # Code generation: |
44 cg = codegenarm.ArmCodeGenerator(outs) | 44 cg = codegenarm.ArmCodeGenerator(outs) |
45 obj = cg.generate(ircode) | 45 obj = cg.generate(ircode) |
46 return True | 46 return True |
47 | 47 |
48 logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s' | |
49 | |
48 def main(args): | 50 def main(args): |
49 logging.basicConfig(format='%(asctime)s %(levelname)s %(name)s %(message)s', level=args.log) | 51 logging.basicConfig(format=logformat, level=args.log) |
50 src = args.source.read() | 52 src = args.source.read() |
51 args.source.close() | 53 args.source.close() |
52 diag = ppci.DiagnosticsManager() | 54 diag = ppci.DiagnosticsManager() |
53 outs = outstream.TextOutputStream() | 55 outs = outstream.TextOutputStream() |
54 | 56 |