You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
5.7 KiB
HTML

<html lang="en">
<head>
<title>x86 Windows Options - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Submodel-Options.html#Submodel-Options" title="Submodel Options">
<link rel="prev" href="x86-Options.html#x86-Options" title="x86 Options">
<link rel="next" href="Xstormy16-Options.html#Xstormy16-Options" title="Xstormy16 Options">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Funding Free Software'', the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below). A copy of the license is included in the section entitled
``GNU Free Documentation License''.
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="x86-Windows-Options"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Xstormy16-Options.html#Xstormy16-Options">Xstormy16 Options</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="x86-Options.html#x86-Options">x86 Options</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a>
<hr>
</div>
<h4 class="subsection">3.17.54 x86 Windows Options</h4>
<p><a name="index-x86-Windows-Options-2760"></a><a name="index-Windows-Options-for-x86-2761"></a>
These additional options are available for Microsoft Windows targets:
<dl>
<dt><code>-mconsole</code><dd><a name="index-mconsole-2762"></a>This option
specifies that a console application is to be generated, by
instructing the linker to set the PE header subsystem type
required for console applications.
This option is available for Cygwin and MinGW targets and is
enabled by default on those targets.
<br><dt><code>-mdll</code><dd><a name="index-mdll-2763"></a>This option is available for Cygwin and MinGW targets. It
specifies that a DLL&mdash;a dynamic link library&mdash;is to be
generated, enabling the selection of the required runtime
startup object and entry point.
<br><dt><code>-mnop-fun-dllimport</code><dd><a name="index-mnop_002dfun_002ddllimport-2764"></a>This option is available for Cygwin and MinGW targets. It
specifies that the <code>dllimport</code> attribute should be ignored.
<br><dt><code>-mthread</code><dd><a name="index-mthread-2765"></a>This option is available for MinGW targets. It specifies
that MinGW-specific thread support is to be used.
<br><dt><code>-municode</code><dd><a name="index-municode-2766"></a>This option is available for MinGW-w64 targets. It causes
the <code>UNICODE</code> preprocessor macro to be predefined, and
chooses Unicode-capable runtime startup code.
<br><dt><code>-mwin32</code><dd><a name="index-mwin32-2767"></a>This option is available for Cygwin and MinGW targets. It
specifies that the typical Microsoft Windows predefined macros are to
be set in the pre-processor, but does not influence the choice
of runtime library/startup code.
<br><dt><code>-mwindows</code><dd><a name="index-mwindows-2768"></a>This option is available for Cygwin and MinGW targets. It
specifies that a GUI application is to be generated by
instructing the linker to set the PE header subsystem type
appropriately.
<br><dt><code>-fno-set-stack-executable</code><dd><a name="index-fno_002dset_002dstack_002dexecutable-2769"></a>This option is available for MinGW targets. It specifies that
the executable flag for the stack used by nested functions isn't
set. This is necessary for binaries running in kernel mode of
Microsoft Windows, as there the User32 API, which is used to set executable
privileges, isn't available.
<br><dt><code>-fwritable-relocated-rdata</code><dd><a name="index-fno_002dwritable_002drelocated_002drdata-2770"></a>This option is available for MinGW and Cygwin targets. It specifies
that relocated-data in read-only section is put into .data
section. This is a necessary for older runtimes not supporting
modification of .rdata sections for pseudo-relocation.
<br><dt><code>-mpe-aligned-commons</code><dd><a name="index-mpe_002daligned_002dcommons-2771"></a>This option is available for Cygwin and MinGW targets. It
specifies that the GNU extension to the PE file format that
permits the correct alignment of COMMON variables should be
used when generating code. It is enabled by default if
GCC detects that the target assembler found during configuration
supports the feature.
</dl>
<p>See also under <a href="x86-Options.html#x86-Options">x86 Options</a> for standard options.
</body></html>