| <html lang="en"> |
| <head> |
| <title>i386 and x86-64 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="i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options" title="i386 and x86-64 Options"> |
| <link rel="next" href="IA_002d64-Options.html#IA_002d64-Options" title="IA-64 Options"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| Copyright (C) 1988-2013 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="i386-and-x86-64-Windows-Options"></a> |
| <a name="i386-and-x86_002d64-Windows-Options"></a> |
| <p> |
| Next: <a rel="next" accesskey="n" href="IA_002d64-Options.html#IA_002d64-Options">IA-64 Options</a>, |
| Previous: <a rel="previous" accesskey="p" href="i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options">i386 and x86-64 Options</a>, |
| Up: <a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a> |
| <hr> |
| </div> |
| |
| <h4 class="subsection">3.17.17 i386 and x86-64 Windows Options</h4> |
| |
| <p><a name="index-i386-and-x86_002d64-Windows-Options-1511"></a> |
| These additional options are available for Microsoft Windows targets: |
| |
| <dl> |
| <dt><code>-mconsole</code><dd><a name="index-mconsole-1512"></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-1513"></a>This option is available for Cygwin and MinGW targets. It |
| specifies that a DLL—a dynamic link library—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-1514"></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-1515"></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-1516"></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-1517"></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-1518"></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-1519"></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-1520"></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-1521"></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="i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options">i386 and x86-64 Options</a> for standard options. |
| |
| </body></html> |
| |