1    /* 
     2     *  Copyright (c) 2010-2015 Texas Instruments Incorporated
     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     *  ======== C66.xdc ========
    14     *
    15     */
    16    
    17    /*!
    18     *  ======== C66 ========
    19     *  TI C66 little endian (COFF)
    20     */
    21    metaonly module C66 inherits ITarget {
    22        override readonly config string name                 = "C66";
    23        override readonly config string suffix               = "66";
    24        override readonly config string isa                  = "66";
    25        override readonly config xdc.bld.ITarget.Model model = {
    26            endian: "little",
    27        };
    28        override readonly config xdc.bld.ITarget.Module base = ti.targets.C64P;
    29    
    30        /*
    31         *  ======== compatibleSuffixes ========
    32         */
    33        override config String compatibleSuffixes[] = ["674", "64P"];
    34    
    35        override readonly config string rts = "ti.targets.rts6000";
    36        override config string platform     = "ti.platforms.simTCI6616";
    37    
    38        override readonly config xdc.bld.ITarget2.Command ar = {
    39            cmd: "ar6x",
    40            opts: "rq"
    41        };
    42    
    43        override readonly config xdc.bld.ITarget2.Command cc = {
    44            cmd: "cl6x -c",
    45            opts: "-mv6600 --abi=coffabi"
    46        };
    47    
    48        override readonly config xdc.bld.ITarget2.Command vers = {
    49            cmd: "cl6x",
    50            opts: "--compiler_revision"
    51        };
    52    
    53        override readonly config xdc.bld.ITarget2.Command asm = {
    54            cmd: "cl6x -c",
    55            opts: "-mv6600 --abi=coffabi"
    56        };
    57    
    58        override readonly config xdc.bld.ITarget2.Command lnk = {
    59            cmd: "cl6x",
    60            opts: "--abi=coffabi -z"
    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 xdc.bld.ITarget2.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 xdc.bld.ITarget2.Options ccOpts = {
    90            prefix: "-qq -pdsw225",
    91            suffix: ""
    92        };
    93    
    94        /*!
    95         *  ======== ccConfigOpts ========
    96         *  User configurable compiler options for the generated config C file.
    97         *
    98         *  -mo places all functions into subsections
    99         *  --no_compress helps with compile time with no real difference in
   100         *  code size since the generated config.c is mostly data and small
   101         *  function stubs.
   102         */
   103        override config xdc.bld.ITarget2.Options ccConfigOpts = {
   104            prefix: "$(ccOpts.prefix) -mo --no_compress",
   105            suffix: "$(ccOpts.suffix)"
   106        };
   107    
   108        override config string includeOpts = "-I$(rootDir)/include";
   109    
   110        final override readonly config string sectMap[string] =
   111            ti.targets.C64P.sectMap;
   112    
   113        final override readonly config Bool splitMap[string] =
   114            ti.targets.C64P.splitMap;
   115    
   116        override readonly config xdc.bld.ITarget.StdTypes stdTypes =
   117            ti.targets.C64P.stdTypes;
   118    
   119        override readonly config Int bitsPerChar =
   120            ti.targets.C64P.bitsPerChar;
   121    }
   122    /*
   123     *  @(#) ti.targets; 1, 0, 3,0; 2-10-2017 09:06:41; /db/ztree/library/trees/xdctargets/xdctargets-m11/src/ xlibrary
   124    
   125     */
   126