Mercurial > lcfOS
comparison python/zcc.py @ 300:158068af716c
yafm
author | Windel Bouwman |
---|---|
date | Tue, 03 Dec 2013 18:00:22 +0100 |
parents | 9417caea2eb3 |
children | 6753763d3bec |
comparison
equal
deleted
inserted
replaced
299:674789d9ff37 | 300:158068af716c |
---|---|
2 | 2 |
3 import sys | 3 import sys |
4 import argparse | 4 import argparse |
5 import logging | 5 import logging |
6 | 6 |
7 import c3 | 7 from ppci.c3 import Builder |
8 import ppci | 8 import ppci |
9 import codegen | 9 import codegen |
10 import outstream | 10 import outstream |
11 from utils import HexFile | 11 from utils import HexFile |
12 import target | 12 import target |
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 = c3.Builder(diag) | 55 c3b = Builder(diag) |
56 cg = codegen.CodeGenerator(tg) | 56 cg = codegen.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 |