gcc参数相关(二)

  本文记录gcc相关参数,编译个人记录。

       linux shell下运行 man gcc可以查阅gcc手册,本文主要摘自gcc手册。gcc [-c|-S|-E] [-std=standard]

      [-g] [-pg] [-Olevel]
      [-Warn...] [-Wpedantic]
      [-Idir...] [-Ldir..]
      [-Dmacro[=defn]...] [-Umacro]
      [-foption...] [-mmachine-option...]
      [-o outfile] [@file] infile ...

OPTIONS
    Option Summary
          Here is a summary of all the options,grouped by type.Explantions are in the following sections.
    
    Overall Options
        -c 
        -S
        -E
        -o file
        -no-canonical-prefixes
        -pipe
        -x language
        -v
        -###
        --help[=class[,...]]
        --target-help
        --version
        -wrapper @file
        -fplugin=file
        -fplugin=arg-name=arg
        -fdump-ada-spec[-slim]
        -fada-spec-parent=unit
        -fdump-go-spec=file

C Language Options
  -ansi
  -std=standard
  -fgun89-inline
  -aux-info filename
  -fallow-parameterless-variadic-functions
  -fno-asm
  -fno-builtin-function
  -fhosted
  -ffreestanding
  -fopenacc
  -fopenmp
  -fopenmp-simd
  -fms-extensions
  -fplan9-extensions
  -trigraphs
  -traditional
  -traditional-cpp
  -fallow-single-precision
  -fcond-mismatch
  -flax-vector-conversions
  -fsigned-bitfields
  -fsigned-char
  -funsigned-bitfields
  -funsigned-char

C++ Language Options
  -fabi-version=n
  -fno-access-control
  -fcheck-new
  -fconstexpr-depth=n
  -ffriend-injection
  -fno-elide-constructors
  -fno-enforce-eh-specs
  -fno-for-scope
  -fno-gun-keywords
  -fno-implicit-templates
  -fno-implicit-inline-templates
  -fno-implement-inlines
  -fms-extensions
  -fno-nonansi-builtins
  -fnothrow-opt
  -fno-operator-names
  -fno-optional-diags
  -fpermissive
  -fno-pretty-templates
  -frepo
  -fno-rtti
  -fsized-deallcation
  -fstats
  -ftemplate-backtrace-limit=n
  -ftempate-depth=n
  -fno-threadsafe-statics
  -fuse-cxa-atexit
  -fno-weak
  -nostdinc++
  -fvisibility-inlines-hidden
  -fvtabel-verify=[std|preinit|none]
  -fvtv-counts
  -fvtv-debug
  -fvisibility-ms-compat
  -fext-numeric-literals
-Wabi=n
-Wabi-tag
-Wconversion-null
  -Wctor-dtor-privacy
  -Wdelete-non-virtual-dtor
  -Wliteral-suffix
  -Wnarrowing
  -Wnoexcept
  -Wnon-virtual-dtor
  -Wreorder
  -Weffc++
  -Wstrict-null-sentinel
  -Wno-non-template-friend
  -Wold-style-cast
  -Woverloaded-virtual
  -Wno-pmf-conversions
  -Wsign-promo

 

posted @ 2020-05-26 15:23  一瞬光阴  阅读(305)  评论(0编辑  收藏  举报