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    import xdc.bld.ITarget2;
    13    
    14    /*!
    15     *  ======== GCArmv5T.xdc ========
    16     *  Embedded little endian Arm v5TE Linux target
    17     *
    18     *  This module defines an embedded target for Linux on Arm. The target
    19     *  generates code compatible with the "v5TE" architecture.
    20     *
    21     */
    22    metaonly module GCArmv5T inherits gnu.targets.arm.ITarget {
    23        override readonly config string name                = "GCArmv5T";   
    24        override readonly config string os                  = "Linux";      
    25        override readonly config string suffix              = "v5T";
    26        override readonly config string isa                 = "v5T";
    27        override readonly config xdc.bld.ITarget.Model model= {
    28            endian: "little"
    29        };
    30    
    31        override readonly config string rts = "gnu.targets.arm.rtsv5T";
    32        override config string platform     = "host.platforms.arm";
    33    
    34        override readonly config String stdInclude = "gnu/targets/arm/std.h";
    35    
    36        override readonly config ITarget2.Command cc = {
    37            cmd: "$(rootDir)/bin/$(GCCTARG)-gcc -c -MD -MF $@.dep",
    38            opts: "-march=armv5t"
    39        };
    40    
    41        override config ITarget2.Options ccOpts = {
    42            prefix: "-fPIC -Wunused",
    43            suffix: "-Dfar= "
    44        };
    45    
    46        override readonly config ITarget2.Command asm = {
    47            cmd: "$(rootDir)/bin/$(GCCTARG)-gcc -c -x assembler",
    48            opts: "-march=armv5t"
    49        };
    50    
    51        override config ITarget2.Options lnkOpts = {
    52            prefix: "",
    53            suffix: "-Wl,-Map=$(XDCCFGDIR)/$@.map -lstdc++ -L$(rootDir)/$(GCCTARG)/lib"
    54        };
    55            
    56        /*
    57         *  ======== compatibleSuffixes ========
    58         */
    59        override config String compatibleSuffixes[] = ["470MV", "v5t"];
    60    
    61        override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
    62            t_IArg          : { size: 4, align: 4 },
    63            t_Char          : { size: 1, align: 1 },
    64            t_Double        : { size: 8, align: 4 },
    65            t_Float         : { size: 4, align: 4 },
    66            t_Fxn           : { size: 4, align: 4 },
    67            t_Int           : { size: 4, align: 4 },
    68            t_Int8          : { size: 1, align: 1 },
    69            t_Int16         : { size: 2, align: 2 },
    70            t_Int32         : { size: 4, align: 4 },
    71            t_Int64         : { size: 8, align: 4 },
    72            t_Long          : { size: 4, align: 4 },
    73            t_LDouble       : { size: 8, align: 4 },
    74            t_LLong         : { size: 8, align: 4 },
    75            t_Ptr           : { size: 4, align: 4 },
    76            t_Short         : { size: 2, align: 2 },
    77            t_Size          : { size: 4, align: 4 },
    78        };
    79    }
    80    /*
    81     *  @(#) gnu.targets.arm; 1, 0, 0,0; 2-10-2017 09:06:32; /db/ztree/library/trees/xdctargets/xdctargets-m11/src/ xlibrary
    82    
    83     */
    84