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    /*!
    14     *  ======== MVArm9.xdc ========
    15     *  MonteVista Arm9 little endian embedded Linux target
    16     *
    17     *  This module defines a embedded target for Linux on Arm9.
    18     *
    19     *  Arm nomenclature:
    20     *  @p(blist)
    21     *      Arm7*  devices contain v4 Cores
    22     *      Arm9*  devices contain v5 Cores
    23     *      Arm11* devices contain v6 thumb2 Cores
    24     *  @p
    25     */
    26    metaonly module MVArm9 inherits gnu.targets.ITarget {
    27        override readonly config string name                = "MVArm9";     
    28        override readonly config string os                  = "Linux";      
    29        override readonly config string suffix              = "470MV";
    30        override readonly config string isa                 = "v5T";
    31        override readonly config xdc.bld.ITarget.Model model= {
    32            endian: "little"
    33        };
    34    
    35        override readonly config string rts     = "gnu.targets.rts470MV";
    36        override config string platform         = "ti.platforms.evmDM6446";
    37        
    38        override config string LONGNAME         = "bin/arm_v5t_le-gcc";
    39    
    40        override readonly config Bool CYGWIN    = true;
    41    
    42        override config xdc.bld.ITarget2.Options ccOpts = {
    43            prefix: "-fPIC -Wunused",
    44            suffix: "-Dfar= "
    45        };
    46    
    47        override config xdc.bld.ITarget2.Options lnkOpts = {
    48            prefix: "",
    49            suffix: "-Wl,-Map=$(XDCCFGDIR)/$@.map -lstdc++ -L$(rootDir)/$(GCCTARG)/lib"
    50        };
    51            
    52        /*
    53         *  ======== compatibleSuffixes ========
    54         */
    55        override config String compatibleSuffixes[] = ["v5T", "v5t"];
    56    
    57        override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
    58            t_IArg          : { size: 4, align: 4 },
    59            t_Char          : { size: 1, align: 1 },
    60            t_Double        : { size: 8, align: 4 },
    61            t_Float         : { size: 4, align: 4 },
    62            t_Fxn           : { size: 4, align: 4 },
    63            t_Int           : { size: 4, align: 4 },
    64            t_Int8          : { size: 1, align: 1 },
    65            t_Int16         : { size: 2, align: 2 },
    66            t_Int32         : { size: 4, align: 4 },
    67            t_Int64         : { size: 8, align: 4 },
    68            t_Long          : { size: 4, align: 4 },
    69            t_LDouble       : { size: 8, align: 4 },
    70            t_LLong         : { size: 8, align: 4 },
    71            t_Ptr           : { size: 4, align: 4 },
    72            t_Short         : { size: 2, align: 2 },
    73        };
    74    }
    75    /*
    76     *  @(#) gnu.targets; 1, 0, 1,437; 1-12-2011 12:55:25; /db/ztree/library/trees/xdctargets/xdctargets-c40x/src/ xlibrary
    77    
    78     */
    79