1 2 3 4 5 6 7 8 9 10 11
12
13 /*!
14 * ======== Arm9.xdc ========
15 * TI Arm9 little endian (ELF)
16 */
17 metaonly module Arm9 inherits ti.targets.arm.elf.IArm {
18 override readonly config string name = "Arm9";
19 override readonly config string suffix = "e9";
20 override readonly config string isa = "v5T";
21 override readonly config string rts = "ti.targets.arm.rtsarm";
22
23 override readonly config xdc.bld.ITarget.Model model = {
24 endian: "little",
25 shortEnums: true
26 };
27
28 29 30
31 override config String compatibleSuffixes[] = ["7", "470", "9t"];
32
33 override readonly config xdc.bld.ITarget2.Command ar = {
34 cmd: "ar470",
35 opts: "rq"
36 };
37
38 override readonly config xdc.bld.ITarget2.Command cc = {
39 cmd: "cl470 -c",
40 opts: "-me -mv5e --abi=eabi"
41 };
42
43 override readonly config xdc.bld.ITarget2.Command vers = {
44 cmd: "cl470",
45 opts: "--compiler_revision"
46 };
47
48 override readonly config xdc.bld.ITarget2.Command asm = {
49 cmd: "cl470 -c",
50 opts: "-me -mv5e --abi=eabi"
51 };
52
53 override readonly config xdc.bld.ITarget2.Command lnk = {
54 cmd: "lnk470",
55 opts: "--silicon_version=5e --strict_compatibility=on"
56 };
57
58 /*!
59 * ======== asmOpts ========
60 * User configurable assembler options.
61 *
62 * Defaults:
63 * @p(dlist)
64 * -`-qq`
65 * super quiet mode
66 */
67 override config xdc.bld.ITarget2.Options asmOpts = {
68 prefix: "-qq",
69 suffix: ""
70 };
71
72 /*!
73 * ======== ccOpts ========
74 * User configurable compiler options.
75 *
76 * Defaults:
77 * @p(dlist)
78 * -`-qq`
79 * super quiet mode
80 * -`-pdsw225`
81 * generate a warning for implicitly declared functions; i.e.,
82 * functions without prototypes
83 */
84 override config xdc.bld.ITarget2.Options ccOpts = {
85 prefix: "-qq -pdsw225",
86 suffix: ""
87 };
88
89 /*!
90 * ======== ccConfigOpts ========
91 * User configurable compiler options for the generated config C file.
92 */
93 override config xdc.bld.ITarget2.Options ccConfigOpts = {
94 prefix: "$(ccOpts.prefix) -ms",
95 suffix: "$(ccOpts.suffix)"
96 };
97
98 /*!
99 * ======== linkLib ========
100 * Default TMS470 cgtools runtime library to link with executable
101 * (comes from $rootDir/lib)
102 */
103 config string linkLib = "rtsv5_A_le_eabi.lib";
104
105 override config string includeOpts = "-I$(rootDir)/include/rts -I$(rootDir)/include ";
106
107 override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
108 t_IArg : { size: 4, align: 4 },
109 t_Char : { size: 1, align: 1 },
110 t_Double : { size: 8, align: 4 },
111 t_Float : { size: 4, align: 4 },
112 t_Fxn : { size: 4, align: 4 },
113 t_Int : { size: 4, align: 4 },
114 t_Int8 : { size: 1, align: 1 },
115 t_Int16 : { size: 2, align: 2 },
116 t_Int32 : { size: 4, align: 4 },
117 t_Int64 : { size: 8, align: 4 },
118 t_Long : { size: 4, align: 4 },
119 t_LDouble : { size: 8, align: 4 },
120 t_LLong : { size: 8, align: 4 },
121 t_Ptr : { size: 4, align: 4 },
122 t_Short : { size: 2, align: 2 },
123 t_Size : { size: 4, align: 4 },
124 };
125 }
126 127 128 129
130