annotate python/target/__init__.py @ 306:b145f8e6050b

Start on c3 rewrite
author Windel Bouwman
date Mon, 09 Dec 2013 19:00:21 +0100
parents 6753763d3bec
children 44f336460c2a
rev   line source
290
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
1 #!/usr/bin/env python
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
2
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
3 from .basetarget import Nop, Instruction, Label, Target, Comment, Alignment
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
4 from .basetarget import Imm32, DebugInfo
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
5
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
6 from .armtarget import ArmTarget
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
7 from .armframe import ArmFrame
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
8 from .arminstructionselector import ArmInstructionSelector
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
9
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
10 from .msp430 import msp430target
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
11
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
12 # Instance:
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
13 armtarget = ArmTarget()
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
14 armtarget.ins_sel = ArmInstructionSelector()
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
15 armtarget.FrameClass = ArmFrame
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
16
290
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
17 #from .msp430target import msp430target
7b38782ed496 File moves
Windel Bouwman
parents:
diff changeset
18
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
19 target_list = [armtarget]
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 292
diff changeset
20
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 292
diff changeset
21
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 292
diff changeset
22 class SimpleTarget(Target):
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 292
diff changeset
23 def __init__(self):
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 292
diff changeset
24 super().__init__('SimpleTarget')