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