comparison python/codegenarm.py @ 250:f5fba5b554d7

Removal of obsolete editor
author Windel Bouwman
date Sun, 28 Jul 2013 19:07:51 +0200
parents e41e4109addd
children 7416c923a02a
comparison
equal deleted inserted replaced
249:e41e4109addd 250:f5fba5b554d7
14 def emit(self, item): 14 def emit(self, item):
15 self.outs.emit(item) 15 self.outs.emit(item)
16 16
17 def generate(self, ircode): 17 def generate(self, ircode):
18 assert isinstance(ircode, ir.Module) 18 assert isinstance(ircode, ir.Module)
19 # TODO: get these from linker descriptor?
20 self.outs.getSection('code').address = 0x08000000
21 self.outs.getSection('data').address = 0x20000000
19 self.outs.selectSection('data') 22 self.outs.selectSection('data')
20 23
21 for gvar in ircode.Variables: 24 for gvar in ircode.Variables:
22 self.emit(Label(gvar.name)) 25 self.emit(Label(gvar.name))
23 # TODO: use initial value: 26 # TODO: use initial value: