1 2 3 4 5 6 7 8 9 10 11
12 /*!
13 * ======== M4F ========
14 * IAR M4F target
15 */
16 metaonly module M4F inherits ITarget
17 {
18 override readonly config String name = "M4F";
19
20 override readonly config String suffix = "rm4f";
21
22 override readonly config String isa = "v7M4";
23
24 override config string platform = "ti.platforms.tiva:TM4C1294NCPDT:1";
25
26 /*!
27 * ======== cc ========
28 * The command used to compile C/C++ source files into object files
29 */
30 override readonly config Command cc = {
31 cmd: "iccarm",
32 opts: "--aeabi --cpu=Cortex-M4F --diag_suppress=Pa050,Go005 --endian=little -e --fpu=VFPv4_sp --thumb"
33 };
34
35 /*!
36 * ======== asm ========
37 * The command used to assembles assembly source files into object files
38 */
39 override readonly config Command asm = {
40 cmd: "iasmarm",
41 opts: "--cpu Cortex-M4F --endian little --fpu VFPv4_sp "
42 };
43
44 /*!
45 * ======== lnk ========
46 * The command used to link executables.
47 */
48 override readonly config Command lnk = {
49 cmd: "ilinkarm",
50 opts: "--cpu=Cortex-M4F"
51 };
52 }
53 54 55 56
57