Next: IA-64 Options, Previous: i386 and x86-64 Options, Up: Submodel Options [Contents][Index]
These additional options are available for Windows targets:
-mconsoleThis option is available for Cygwin and MinGW targets. It 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 is the default behavior for Cygwin and MinGW targets.
-mdllThis 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.
-mnop-fun-dllimportThis option is available for Cygwin and MinGW targets. It specifies that the dllimport attribute should be ignored.
-mthreadThis option is available for MinGW targets. It specifies that MinGW-specific thread support is to be used.
-municodeThis option is available for mingw-w64 targets. It specifies that the UNICODE macro is getting pre-defined and that the unicode capable runtime startup code is chosen.
-mwin32This option is available for Cygwin and MinGW targets. It specifies that the typical Windows pre-defined macros are to be set in the pre-processor, but does not influence the choice of runtime library/startup code.
-mwindowsThis 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.
-fno-set-stack-executableThis option is available for MinGW targets. It specifies that the executable flag for stack used by nested functions isn’t set. This is necessary for binaries running in kernel mode of Windows, as there the user32 API, which is used to set executable privileges, isn’t available.
-mpe-aligned-commonsThis 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 will be enabled by default if GCC detects that the target assembler found during configuration supports the feature.
See also under i386 and x86-64 Options for standard options.
Next: IA-64 Options, Previous: i386 and x86-64 Options, Up: Submodel Options [Contents][Index]