Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   gcc    ( 1 )

компилятор C и C ++ проекта GNU (GNU project C and C++ compiler)

  Name  |  Synopsis  |  Description  |  Options  |    Options detail    |  Environment  |  Bugs  |  Note  |  See also  |

Параметры подробно (Options detail)


  Controlling the Kind of Output  |  Compiling C++ Programs  |  Controlling C Dialect  |  Controlling C++ Dialect  |  Controlling Objective-C and Objective-C++ Dialects  |  Control Diagnostic Messages Formatting  |  Request or Suppress Warnings 1  |  Request or Suppress Warnings 2  |  Request or Suppress Warnings 3  |  Debugging Your Program  |  Control Optimization 1  |  Control Optimization 2  |  Control Optimization 3  |  Control Optimization 4  |  Program Instrumentation  |  Controlling the Preprocessor  |  Linking  |  Directory Search  |  Code Generation Conventions  |  GCC Developer  |  Machine-Dependent  |  AArch64  |  Adapteva Epiphany  |  AMD GCN  |  ARC  |  ARM  |  AVR  |  Blackfin  |  C6X  |  CRIS  |  CR16  |  C-SKY  |  Darwin  |  DEC Alpha  |  FR30  |  FT32  |  FRV  |  GNU/Linux  |  H8/300  |  HPPA  |  IA-64  |  LM32  |  M32C  |  M32R/D  |  M680x0  |  MCore  |  MeP  |  MicroBlaze  |  MIPS  |  MMIX  |  MN10300  |  Moxie  |  MSP430  |  NDS32  |  Nios II  |  Nvidia PTX  |  OpenRISC  |  PDP-11  |  picoChip  |  RISC-V  |  RL78  |  IBM RS/6000 and PowerPC  |  RX  |  S/390 and zSeries  |  Score  |  SH  |  Solaris 2  |  SPARC  |  SPU  |  System V  |  TILE-Gx  |  TILEPro  |  V850  |  VAX  |  Visium  |  VMS  |  VxWorks  |  x86 1  |  x86 2  |    x86 Windows    |  Xstormy16  |  Xtensa  |

x86 Windows

These additional options are available for Microsoft Windows
       targets:

       -mconsole
           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.

       -mdll
           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.

       -mnop-fun-dllimport
           This option is available for Cygwin and MinGW targets.  It
           specifies that the "dllimport" attribute should be ignored.

       -mthread
           This option is available for MinGW targets. It specifies that
           MinGW-specific thread support is to be used.

       -municode
           This option is available for MinGW-w64 targets.  It causes
           the "UNICODE" preprocessor macro to be predefined, and
           chooses Unicode-capable runtime startup code.

       -mwin32
           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.

       -mwindows
           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.

       -fno-set-stack-executable
           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.

       -fwritable-relocated-rdata
           This option is available for MinGW and Cygwin targets.  It
           specifies that relocated-data in read-only section is put
           into the ".data" section.  This is a necessary for older
           runtimes not supporting modification of ".rdata" sections for
           pseudo-relocation.

       -mpe-aligned-commons
           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.

       See also under x86 Options for standard options.