gcc: x86 Windows Options

1 
1 3.18.57 x86 Windows Options
1 ---------------------------
1 
1 These additional options are available for Microsoft Windows targets:
1 
1 '-mconsole'
1      This option specifies that a console application is to be
1      generated, by instructing the linker to set the PE header subsystem
1      type required for console applications.  This option is available
1      for Cygwin and MinGW targets and is enabled by default on those
1      targets.
1 
1 '-mdll'
1      This option is available for Cygwin and MinGW targets.  It
1      specifies that a DLL--a dynamic link library--is to be generated,
1      enabling the selection of the required runtime startup object and
1      entry point.
1 
1 '-mnop-fun-dllimport'
1      This option is available for Cygwin and MinGW targets.  It
1      specifies that the 'dllimport' attribute should be ignored.
1 
1 '-mthread'
1      This option is available for MinGW targets.  It specifies that
1      MinGW-specific thread support is to be used.
1 
1 '-municode'
1      This option is available for MinGW-w64 targets.  It causes the
1      'UNICODE' preprocessor macro to be predefined, and chooses
1      Unicode-capable runtime startup code.
1 
1 '-mwin32'
1      This option is available for Cygwin and MinGW targets.  It
1      specifies that the typical Microsoft Windows predefined macros are
1      to be set in the pre-processor, but does not influence the choice
1      of runtime library/startup code.
1 
1 '-mwindows'
1      This option is available for Cygwin and MinGW targets.  It
1      specifies that a GUI application is to be generated by instructing
1      the linker to set the PE header subsystem type appropriately.
1 
1 '-fno-set-stack-executable'
1      This option is available for MinGW targets.  It specifies that the
1      executable flag for the stack used by nested functions isn't set.
1      This is necessary for binaries running in kernel mode of Microsoft
1      Windows, as there the User32 API, which is used to set executable
1      privileges, isn't available.
1 
1 '-fwritable-relocated-rdata'
1      This option is available for MinGW and Cygwin targets.  It
1      specifies that relocated-data in read-only section is put into the
1      '.data' section.  This is a necessary for older runtimes not
1      supporting modification of '.rdata' sections for pseudo-relocation.
1 
1 '-mpe-aligned-commons'
1      This option is available for Cygwin and MinGW targets.  It
1      specifies that the GNU extension to the PE file format that permits
1      the correct alignment of COMMON variables should be used when
1      generating code.  It is enabled by default if GCC detects that the
1      target assembler found during configuration supports the feature.
1 
1  See also under ⇒x86 Options for standard options.
1