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