x86-Windows-Options.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2017 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>Using the GNU Compiler Collection (GCC): x86 Windows Options</title>
  20. <meta name="description" content="Using the GNU Compiler Collection (GCC): x86 Windows Options">
  21. <meta name="keywords" content="Using the GNU Compiler Collection (GCC): x86 Windows Options">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Submodel-Options.html#Submodel-Options" rel="up" title="Submodel Options">
  30. <link href="Xstormy16-Options.html#Xstormy16-Options" rel="next" title="Xstormy16 Options">
  31. <link href="x86-Options.html#x86-Options" rel="prev" title="x86 Options">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style:oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="x86-Windows-Options"></a>
  63. <div class="header">
  64. <p>
  65. Next: <a href="Xstormy16-Options.html#Xstormy16-Options" accesskey="n" rel="next">Xstormy16 Options</a>, Previous: <a href="x86-Options.html#x86-Options" accesskey="p" rel="prev">x86 Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="x86-Windows-Options-1"></a>
  69. <h4 class="subsection">3.18.56 x86 Windows Options</h4>
  70. <a name="index-x86-Windows-Options"></a>
  71. <a name="index-Windows-Options-for-x86"></a>
  72. <p>These additional options are available for Microsoft Windows targets:
  73. </p>
  74. <dl compact="compact">
  75. <dt><code>-mconsole</code></dt>
  76. <dd><a name="index-mconsole"></a>
  77. <p>This option
  78. specifies that a console application is to be generated, by
  79. instructing the linker to set the PE header subsystem type
  80. required for console applications.
  81. This option is available for Cygwin and MinGW targets and is
  82. enabled by default on those targets.
  83. </p>
  84. </dd>
  85. <dt><code>-mdll</code></dt>
  86. <dd><a name="index-mdll"></a>
  87. <p>This option is available for Cygwin and MinGW targets. It
  88. specifies that a DLL&mdash;a dynamic link library&mdash;is to be
  89. generated, enabling the selection of the required runtime
  90. startup object and entry point.
  91. </p>
  92. </dd>
  93. <dt><code>-mnop-fun-dllimport</code></dt>
  94. <dd><a name="index-mnop_002dfun_002ddllimport"></a>
  95. <p>This option is available for Cygwin and MinGW targets. It
  96. specifies that the <code>dllimport</code> attribute should be ignored.
  97. </p>
  98. </dd>
  99. <dt><code>-mthread</code></dt>
  100. <dd><a name="index-mthread"></a>
  101. <p>This option is available for MinGW targets. It specifies
  102. that MinGW-specific thread support is to be used.
  103. </p>
  104. </dd>
  105. <dt><code>-municode</code></dt>
  106. <dd><a name="index-municode"></a>
  107. <p>This option is available for MinGW-w64 targets. It causes
  108. the <code>UNICODE</code> preprocessor macro to be predefined, and
  109. chooses Unicode-capable runtime startup code.
  110. </p>
  111. </dd>
  112. <dt><code>-mwin32</code></dt>
  113. <dd><a name="index-mwin32"></a>
  114. <p>This option is available for Cygwin and MinGW targets. It
  115. specifies that the typical Microsoft Windows predefined macros are to
  116. be set in the pre-processor, but does not influence the choice
  117. of runtime library/startup code.
  118. </p>
  119. </dd>
  120. <dt><code>-mwindows</code></dt>
  121. <dd><a name="index-mwindows"></a>
  122. <p>This option is available for Cygwin and MinGW targets. It
  123. specifies that a GUI application is to be generated by
  124. instructing the linker to set the PE header subsystem type
  125. appropriately.
  126. </p>
  127. </dd>
  128. <dt><code>-fno-set-stack-executable</code></dt>
  129. <dd><a name="index-fno_002dset_002dstack_002dexecutable"></a>
  130. <p>This option is available for MinGW targets. It specifies that
  131. the executable flag for the stack used by nested functions isn&rsquo;t
  132. set. This is necessary for binaries running in kernel mode of
  133. Microsoft Windows, as there the User32 API, which is used to set executable
  134. privileges, isn&rsquo;t available.
  135. </p>
  136. </dd>
  137. <dt><code>-fwritable-relocated-rdata</code></dt>
  138. <dd><a name="index-fno_002dwritable_002drelocated_002drdata"></a>
  139. <p>This option is available for MinGW and Cygwin targets. It specifies
  140. that relocated-data in read-only section is put into the <code>.data</code>
  141. section. This is a necessary for older runtimes not supporting
  142. modification of <code>.rdata</code> sections for pseudo-relocation.
  143. </p>
  144. </dd>
  145. <dt><code>-mpe-aligned-commons</code></dt>
  146. <dd><a name="index-mpe_002daligned_002dcommons"></a>
  147. <p>This option is available for Cygwin and MinGW targets. It
  148. specifies that the GNU extension to the PE file format that
  149. permits the correct alignment of COMMON variables should be
  150. used when generating code. It is enabled by default if
  151. GCC detects that the target assembler found during configuration
  152. supports the feature.
  153. </p></dd>
  154. </dl>
  155. <p>See also under <a href="x86-Options.html#x86-Options">x86 Options</a> for standard options.
  156. </p>
  157. <hr>
  158. <div class="header">
  159. <p>
  160. Next: <a href="Xstormy16-Options.html#Xstormy16-Options" accesskey="n" rel="next">Xstormy16 Options</a>, Previous: <a href="x86-Options.html#x86-Options" accesskey="p" rel="prev">x86 Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  161. </div>
  162. </body>
  163. </html>