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     *  ======== Mingw.xdc ========
    15     *  MinGW native Windows target
    16     *
    17     *  This module defines a native target for Windows using the mingw compiler.
    18     *
    19     *  The mingw compiler is a freely available (www.mingw.org) port of GCC that
    20     *  can build Windows compatible libraries, DLLs, and executables.
    21     */
    22    metaonly module Mingw inherits gnu.targets.ITarget {
    23        override readonly config string name                 = "Mingw";     
    24        override readonly config string os                   = "Windows";   
    25        override readonly config string suffix               = "86GW";
    26        override readonly config string isa                  = "x86";       
    27        override readonly config xdc.bld.ITarget.Model model = {
    28            endian: "little"
    29        };
    30    
    31        override readonly config string rts = "gnu.targets.rts86GW";
    32    
    33        override config string platform = "host.platforms.PC";
    34    
    35        /*!
    36         *  ======== cmdPrefix ========
    37         *  Prefix to put in front of each command
    38         *
    39         *  This string is put in front of every Command before being passed to
    40         *  the shell for execution.  This string can be used to run the compiler
    41         *  in emulation environments.  
    42         */
    43        config String cmdPrefix = "";
    44    
    45        override config xdc.bld.ITarget2.Options ccOpts = {
    46            prefix: "-Wunused",
    47            suffix: "-Dfar= "
    48        };
    49    
    50        override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
    51            t_IArg          : { size: 4, align: 4 },
    52            t_Char          : { size: 1, align: 1 },
    53            t_Double        : { size: 8, align: 4 },
    54            t_Float         : { size: 4, align: 4 },
    55            t_Fxn           : { size: 4, align: 4 },
    56            t_Int           : { size: 4, align: 4 },
    57            t_Int8          : { size: 1, align: 1 },
    58            t_Int16         : { size: 2, align: 2 },
    59            t_Int32         : { size: 4, align: 4 },
    60            t_Int64         : { size: 8, align: 4 },
    61            t_Long          : { size: 4, align: 4 },
    62            t_LDouble       : { size: 12, align: 4 },
    63            t_LLong         : { size: 8, align: 4 },
    64            t_Ptr           : { size: 4, align: 4 },
    65            t_Short         : { size: 2, align: 2 },
    66            t_Size          : { size: 4, align: 4 },
    67        };
    68    }
    69    /*
    70     *  @(#) gnu.targets; 1, 0, 1,0; 2-10-2017 09:06:32; /db/ztree/library/trees/xdctargets/xdctargets-m11/src/ xlibrary
    71    
    72     */
    73