Mercurial > lcfOS
comparison python/codegenarm.py @ 236:8786811a5a59
Fix pcrel
author | Windel Bouwman |
---|---|
date | Mon, 15 Jul 2013 20:15:31 +0200 |
parents | ff40407c0240 |
children | 81752b0f85a5 |
comparison
equal
deleted
inserted
replaced
235:ff40407c0240 | 236:8786811a5a59 |
---|---|
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 print('ARM code generation') | |
20 self.outs.selectSection('data') | 19 self.outs.selectSection('data') |
21 | 20 |
22 for gvar in ircode.Variables: | 21 for gvar in ircode.Variables: |
23 self.emit(Label(gvar.name)) | 22 self.emit(Label(gvar.name)) |
24 # TODO: use initial value: | 23 # TODO: use initial value: |