Путеводитель по Руководству 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  |

Nvidia PTX

These options are defined for Nvidia PTX:

       -m32
       -m64
           Generate code for 32-bit or 64-bit ABI.

       -misa=ISA-string
           Generate code for given the specified PTX ISA (e.g. sm_35).
           ISA strings must be lower-case.  Valid ISA strings include
           sm_30 and sm_35.  The default ISA is sm_30.

       -mmainkernel
           Link in code for a __main kernel.  This is for stand-alone
           instead of offloading execution.

       -moptimize
           Apply partitioned execution optimizations.  This is the
           default when any level of optimization is selected.

       -msoft-stack
           Generate code that does not use ".local" memory directly for
           stack storage. Instead, a per-warp stack pointer is
           maintained explicitly. This enables variable-length stack
           allocation (with variable-length arrays or "alloca"), and
           when global memory is used for underlying storage, makes it
           possible to access automatic variables from other threads, or
           with atomic instructions. This code generation variant is
           used for OpenMP offloading, but the option is exposed on its
           own for the purpose of testing the compiler; to generate code
           suitable for linking into programs using OpenMP offloading,
           use option -mgomp.

       -muniform-simt
           Switch to code generation variant that allows to execute all
           threads in each warp, while maintaining memory state and side
           effects as if only one thread in each warp was active outside
           of OpenMP SIMD regions.  All atomic operations and calls to
           runtime (malloc, free, vprintf) are conditionally executed
           (iff current lane index equals the master lane index), and
           the register being assigned is copied via a shuffle
           instruction from the master lane.  Outside of SIMD regions
           lane 0 is the master; inside, each thread sees itself as the
           master.  Shared memory array "int __nvptx_uni[]" stores all-
           zeros or all-ones bitmasks for each warp, indicating current
           mode (0 outside of SIMD regions).  Each thread can bitwise-
           and the bitmask at position "tid.y" with current lane index
           to compute the master lane index.

       -mgomp
           Generate code for use in OpenMP offloading: enables
           -msoft-stack and -muniform-simt options, and selects
           corresponding multilib variant.