1    /* 
     2     *  Copyright (c) 2008 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     *  ======== C62.xdc ========
    14     *
    15     */
    16    
    17    /*!
    18     *  ======== C62 ========
    19     *
    20     *  TI C62 default runtime model (little endian)
    21     */
    22    metaonly module C62 inherits ti.targets.ITarget {
    23        override readonly config string name            = "C62";
    24        override readonly config string suffix          = "62";
    25        override readonly config string isa             = "62";     
    26        override readonly config xdc.bld.ITarget.Model model = {
    27            endian: "little"
    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: ""
    40        };
    41    
    42        override readonly config xdc.bld.ITarget2.Command asm = {
    43            cmd: "cl6x -c",
    44            opts: ""
    45        };
    46    
    47        override readonly config xdc.bld.ITarget2.Command lnk = {
    48            cmd: "lnk6x",
    49            opts: ""
    50        };
    51    
    52        override readonly config xdc.bld.ITarget2.Command vers = {
    53            cmd: "cl6x",
    54            opts: "--compiler_revision"
    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        override config string includeOpts = "-I$(rootDir)/include";
    89    
    90        final override readonly config string sectMap[string] = [
    91            [".text", "code"],
    92            [".stack", "stack"],
    93            [".bss", "data"],
    94            [".cinit", "data"],
    95            [".pinit", "data"],
    96            [".const", "data"],
    97            [".data", "data"],
    98            [".switch", "data"],
    99            [".sysmem", "data"],
   100            [".far", "data"],
   101            [".args", "data"],
   102            [".cio", "data"],
   103        ];
   104    
   105        final override readonly config Bool splitMap[string] = [
   106            [".text", true],
   107            [".const", true],
   108            [".data", true],
   109            [".switch", true],
   110            [".far", true],
   111            [".args", true],
   112            [".cio", true]
   113        ];
   114    
   115        override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
   116            t_IArg          : { size: 4, align: 4 },
   117            t_Char          : { size: 1, align: 1 },
   118            t_Double        : { size: 8, align: 8 },
   119            t_Float         : { size: 4, align: 4 },
   120            t_Fxn           : { size: 4, align: 4 },
   121            t_Int           : { size: 4, align: 4 },
   122            t_Int8          : { size: 1, align: 1 },
   123            t_Int16         : { size: 2, align: 2 },
   124            t_Int32         : { size: 4, align: 4 },
   125            t_Int40         : { size: 8, align: 8 },
   126            t_Int64         : { size: 8, align: 8 },
   127            t_Long          : { size: 8, align: 8 },
   128            t_LDouble       : { size: 8, align: 8 },
   129            t_LLong         : { size: 8, align: 8 },
   130            t_Ptr           : { size: 4, align: 4 },
   131            t_Short         : { size: 2, align: 2 },
   132            t_Size          : { size: 4, align: 4 },
   133        };
   134        
   135        override readonly config Int bitsPerChar = 8;
   136    }
   137    /*
   138     *  @(#) ti.targets; 1, 0, 3,669; 3-17-2014 16:50:15; /db/ztree/library/trees/xdctargets/xdctargets-h18x/src/ xlibrary
   139    
   140     */
   141