1    /* 
     2     *  Copyright (c) 2008-2016 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    /*!
    14     *  ======== Arm9.xdc ========
    15     *  TI Arm9 little endian (ELF)
    16     */
    17    metaonly module Arm9 inherits ti.targets.arm.elf.IArm {
    18        override readonly config string name        = "Arm9";
    19        override readonly config string suffix      = "e9";
    20        override readonly config string isa         = "v5T";
    21        override readonly config string rts         = "ti.targets.arm.rtsarm";
    22    
    23        override readonly config xdc.bld.ITarget.Model model = {
    24            endian: "little",
    25            shortEnums: true
    26        };
    27    
    28        /*
    29         *  ======== compatibleSuffixes ========
    30         */
    31        override config String compatibleSuffixes[] = ["7", "470", "9t"];
    32    
    33        override readonly config xdc.bld.ITarget2.Command ar = {
    34            cmd:  "armar",
    35            opts: "rq"
    36        };
    37    
    38        override readonly config xdc.bld.ITarget2.Command cc = {
    39            cmd:  "armcl -c",
    40            opts: "-me -mv5e --abi=eabi"
    41        };
    42    
    43        override readonly config xdc.bld.ITarget2.Command vers = {
    44            cmd:  "armcl",
    45            opts: "--compiler_revision"
    46        };
    47    
    48        override readonly config xdc.bld.ITarget2.Command asm = {
    49            cmd:  "armcl -c",
    50            opts: "-me -mv5e --abi=eabi"
    51        };
    52    
    53        override readonly config xdc.bld.ITarget2.Command lnk = {
    54            cmd:  "armcl",
    55            opts: "--silicon_version=5e -z --strict_compatibility=on"
    56        };
    57    
    58        /*!
    59         *  ======== asmOpts ========
    60         *  User configurable assembler options.
    61         *
    62         *  Defaults:
    63         *  @p(dlist)
    64         *      -`-qq`
    65         *          super quiet mode
    66         */
    67        override config xdc.bld.ITarget2.Options asmOpts = {
    68            prefix: "-qq",
    69            suffix: ""
    70        };
    71    
    72        /*!
    73         *  ======== ccOpts ========
    74         *  User configurable compiler options.
    75         *
    76         *  Defaults:
    77         *  @p(dlist)
    78         *      -`-qq`
    79         *          super quiet mode
    80         *      -`-pdsw225`
    81         *          generate a warning for implicitly declared functions; i.e.,
    82         *          functions without prototypes
    83         */
    84        override config xdc.bld.ITarget2.Options ccOpts = {
    85            prefix: "-qq -pdsw225",
    86            suffix: ""
    87        };
    88    
    89        /*!
    90         *  ======== ccConfigOpts ========
    91         *  User configurable compiler options for the generated config C file.
    92         */
    93        override config xdc.bld.ITarget2.Options ccConfigOpts = {
    94            prefix: "$(ccOpts.prefix) -ms",
    95            suffix: "$(ccOpts.suffix)"
    96        };
    97    
    98        override config string includeOpts = "-I$(rootDir)/include ";
    99    
   100        override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
   101            t_IArg          : { size: 4, align: 4 },
   102            t_Char          : { size: 1, align: 1 },
   103            t_Double        : { size: 8, align: 4 },
   104            t_Float         : { size: 4, align: 4 },
   105            t_Fxn           : { size: 4, align: 4 },
   106            t_Int           : { size: 4, align: 4 },
   107            t_Int8          : { size: 1, align: 1 },
   108            t_Int16         : { size: 2, align: 2 },
   109            t_Int32         : { size: 4, align: 4 },
   110            t_Int64         : { size: 8, align: 4 },
   111            t_Long          : { size: 4, align: 4 },
   112            t_LDouble       : { size: 8, align: 4 },
   113            t_LLong         : { size: 8, align: 4 },
   114            t_Ptr           : { size: 4, align: 4 },
   115            t_Short         : { size: 2, align: 2 },
   116            t_Size          : { size: 4, align: 4 },
   117        };
   118    }
   119    /*
   120     *  @(#) ti.targets.arm.elf; 1, 0, 0,0; 2-10-2017 09:06:43; /db/ztree/library/trees/xdctargets/xdctargets-m11/src/ xlibrary
   121    
   122     */
   123