blob: 2f24dd406b61b751a1e8bb412caae4e0f8cfac96 [file] [log] [blame]
/*!
* ======== Mingw.xdc ========
* MinGW native Windows target
*
* This module defines a native target for Windows using the mingw compiler.
*
* The mingw compiler is a freely available (www.mingw.org) port of GCC that
* can build Windows compatible libraries, DLLs, and executables.
*/
metaonly module Mingw inherits gnu.targets.ITarget {
override readonly config string name = "Mingw";
override readonly config string os = "Windows";
override readonly config string suffix = "86GW";
override readonly config string isa = "x86";
override readonly config xdc.bld.ITarget.Model model = {
endian: "little"
};
override readonly config string rts = "gnu.targets.rts86GW";
override config string platform = "host.platforms.PC";
/*!
* ======== cmdPrefix ========
* Prefix to put in front of each command
*
* This string is put in front of every Command before being passed to
* the shell for execution. This string can be used to run the compiler
* in emulation environments.
*/
config String cmdPrefix = "";
override config xdc.bld.ITarget2.Options ccOpts = {
prefix: "-Wunused",
suffix: "-Dfar= "
};
override readonly config xdc.bld.ITarget.StdTypes stdTypes = {
t_IArg : { size: 4, align: 4 },
t_Char : { size: 1, align: 1 },
t_Double : { size: 8, align: 4 },
t_Float : { size: 4, align: 4 },
t_Fxn : { size: 4, align: 4 },
t_Int : { size: 4, align: 4 },
t_Int8 : { size: 1, align: 1 },
t_Int16 : { size: 2, align: 2 },
t_Int32 : { size: 4, align: 4 },
t_Int64 : { size: 8, align: 4 },
t_Long : { size: 4, align: 4 },
t_LDouble : { size: 12, align: 4 },
t_LLong : { size: 8, align: 4 },
t_Ptr : { size: 4, align: 4 },
t_Short : { size: 2, align: 2 },
t_Size : { size: 4, align: 4 },
};
}