1    /* 
     2     *  Copyright (c) 2013 Texas Instruments and others.
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     *
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     *
    11     * */
    12    /*!
    13     *  ======== IM4 ========
    14     *  Interface for IAR Cortex M4 based targets
    15     */
    16    metaonly interface IM4 inherits ITarget
    17    {
    18        override readonly config String isa  = "v7M4";
    19    
    20        /*!
    21         *  ======== model ========
    22         *  Little endian, thumb2 model
    23         */
    24        override readonly config xdc.bld.ITarget.Model model = {
    25            endian: "little",
    26            codeModel: "thumb2",
    27            shortEnums: true
    28        };
    29    
    30        /*!
    31         *  ======== profiles ========
    32         *  Standard options profiles.
    33         */
    34        override config xdc.bld.ITarget.OptionSet profiles[string] = [
    35            ["debug", {
    36                compileOpts: {
    37                    copts: "--debug --dlib_config $(rootDir)/inc/c/DLib_Config_Normal.h",
    38                },
    39                linkOpts: "--semihosting=iar_breakpoint $(rootDir)/lib/dlpp7M_tl_ne.a",
    40            }],
    41            ["release", {
    42                compileOpts: {
    43                    copts: "-Om --dlib_config $(rootDir)/inc/c/DLib_Config_Normal.h",
    44                },
    45                linkOpts: "--semihosting=iar_breakpoint $(rootDir)/lib/dlpp7M_tl_ne.a",
    46            }],
    47            ["debug_full", {
    48                compileOpts: {
    49                    copts: "--debug --dlib_config $(rootDir)/inc/c/DLib_Config_Full.h",
    50                },
    51                linkOpts: "--semihosting=iar_breakpoint $(rootDir)/lib/dlpp7M_tl_fe.a",
    52            }],
    53            ["release_full", {
    54                compileOpts: {
    55                    copts: "-Om --dlib_config $(rootDir)/inc/c/DLib_Config_Full.h",
    56                },
    57                linkOpts: "--semihosting=iar_breakpoint $(rootDir)/lib/dlpp7M_tl_fe.a",
    58            }],
    59        ];
    60    }
    61    /*
    62     *  @(#) iar.targets.arm; 1, 0, 0,16; 6-10-2013 15:17:26; /db/ztree/library/trees/xdctargets/xdctargets-g30x/src/ xlibrary
    63    
    64     */
    65