comparison 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
comparison
equal deleted inserted replaced
300:158068af716c 301:6753763d3bec
4 import argparse 4 import argparse
5 import logging 5 import logging
6 6
7 from ppci.c3 import Builder 7 from ppci.c3 import Builder
8 import ppci 8 import ppci
9 import codegen 9 from ppci.codegen import CodeGenerator
10 import outstream 10 import outstream
11 from utils import HexFile 11 from utils import HexFile
12 import target 12 import target
13 13
14 14
50 Compile sources into output stream. 50 Compile sources into output stream.
51 Sources is an iterable of open files. 51 Sources is an iterable of open files.
52 """ 52 """
53 logging.info('Zcc started') 53 logging.info('Zcc started')
54 # Front end: 54 # Front end:
55 c3b = Builder(diag) 55 c3b = Builder(diag, tg)
56 cg = codegen.CodeGenerator(tg) 56 cg = CodeGenerator(tg)
57 57
58 # TODO: remove this arm specifics: 58 # TODO: remove this arm specifics:
59 outs.getSection('code').address = 0x08000000 59 outs.getSection('code').address = 0x08000000
60 outs.getSection('data').address = 0x20000000 60 outs.getSection('data').address = 0x20000000
61 61