Mercurial > lcfOS
comparison python/ppci/buildtasks.py @ 347:742588fb8cd6 devel
Merge into devel branch
author | Windel Bouwman |
---|---|
date | Fri, 07 Mar 2014 17:10:21 +0100 |
parents | 3bb7dcfe5529 |
children | 442fb043d149 |
comparison
equal
deleted
inserted
replaced
343:11c5a8a70c02 | 347:742588fb8cd6 |
---|---|
31 def __init__(self, source, target, output_object): | 31 def __init__(self, source, target, output_object): |
32 super().__init__('Assemble') | 32 super().__init__('Assemble') |
33 self.source = source | 33 self.source = source |
34 self.output = output_object | 34 self.output = output_object |
35 self.ostream = BinaryOutputStream(self.output) | 35 self.ostream = BinaryOutputStream(self.output) |
36 self.assembler = Assembler(target, self.ostream) | 36 self.assembler = Assembler(target) |
37 | 37 |
38 def run(self): | 38 def run(self): |
39 self.ostream.selectSection('code') | 39 self.ostream.selectSection('code') |
40 self.assembler.assemble(self.source) | 40 self.assembler.assemble(self.source, self.ostream) |
41 | 41 |
42 | 42 |
43 class Compile(BuildTask): | 43 class Compile(BuildTask): |
44 """ Task that compiles C3 source for some target into an object file """ | 44 """ Task that compiles C3 source for some target into an object file """ |
45 def __init__(self, sources, includes, target, output_object): | 45 def __init__(self, sources, includes, target, output_object): |