1 2 3 4 5 6 7 8 9 10 11
12 13 14 15
16
17 /*!
18 * ======== C67P_big_endian ========
19 * TI C67P big endian target
20 */
21 metaonly module C67P_big_endian inherits ti.targets.ITarget {
22 override readonly config string name = "C67P_big_endian";
23 override readonly config string suffix = "67Pe";
24 override readonly config string isa = "67P";
25 override readonly config xdc.bld.ITarget.Model model = {
26 endian: "big"
27 };
28 override readonly config xdc.bld.ITarget.Module base = ti.targets.C62;
29
30 override readonly config string rts = "ti.targets.rts6000";
31 override config string platform = "ti.platforms.sim6xxx:TMS320C6727";
32
33 34 35
36 override config String compatibleSuffixes[] = ["67e", "62e"];
37
38 override readonly config ITarget.Command ar = {
39 cmd: "ar6x",
40 opts: "rq"
41 };
42
43 override readonly config ITarget.Command cc = {
44 cmd: "cl6x -c",
45 opts: "-me -mv67p"
46 };
47
48 override readonly config ITarget.Command vers = {
49 cmd: "cl6x",
50 opts: "-version"
51 };
52
53 override readonly config ITarget.Command asm = {
54 cmd: "cl6x -c",
55 opts: "-me -mv67p"
56 };
57
58 override readonly config ITarget.Command lnk = {
59 cmd: "lnk6x",
60 opts: ""
61 };
62
63 /*!
64 * ======== asmOpts ========
65 * User configurable assembler options.
66 *
67 * Defaults:
68 * @p(dlist)
69 * -`-qq`
70 * super quiet mode
71 */
72 override config ITarget.Options asmOpts = {
73 prefix: "-qq",
74 suffix: ""
75 };
76
77 /*!
78 * ======== ccOpts ========
79 * User configurable compiler options.
80 *
81 * Defaults:
82 * @p(dlist)
83 * -`-qq`
84 * super quiet mode
85 * -`-pdsw225`
86 * generate a warning for implicitly declared functions; i.e.,
87 * functions without prototypes
88 */
89 override config ITarget.Options ccOpts = {
90 prefix: "-qq -pdsw225",
91 suffix: ""
92 };
93
94 /*!
95 * ======== lnkOpts ========
96 * User configurable linker options.
97 *
98 * Defaults:
99 * @p(dlist)
100 * -`-w`
101 * Display linker warnings
102 * -`-q`
103 * Quite run
104 * -`-u`
105 * Place unresolved external symbol into symbol table
106 * -`-c`
107 * ROM autoinitialization model
108 * -`-m`
109 * create a map file
110 * -`-l`
111 * archive library file as linker input
112 */
113 override config ITarget.Options lnkOpts = {
114 prefix: "-q -u _c_int00",
115 suffix: "-c -m $(XDCCFGDIR)/$@.map -l $(rootDir)/lib/rts67pluse.lib"
116 };
117
118 override config string includeOpts = "-I$(rootDir)/include";
119
120 final override readonly config string sectMap[string] =
121 ti.targets.C62.sectMap;
122
123 override readonly config xdc.bld.ITarget.StdTypes stdTypes = C62.stdTypes;
124
125 override readonly config Int bitsPerChar = C62.bitsPerChar;
126 }
127 128 129
130