gcc的中文版使用说明和选项
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                gcc的中文版使用说明和选项
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            用法:gcc [選項] 文件...
選項:-pass-exit-codes         在某一階段退出時返回最高的錯誤碼--help                   顯示此幫助說明--target-help            顯示目標機器特定的命令行選項--help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...]顯示特定類型的命令行選項--version                顯示編譯器版本信息-dumpspecs               顯示所有內建 spec 字符串-dumpversion             顯示編譯器的版本號-dumpmachine             顯示編譯器的目標處理器-print-search-dirs       顯示編譯器的搜索路徑-print-libgcc-file-name  顯示編譯器伴隨庫的名稱-print-file-name=<庫>    顯示 <庫> 的完整路徑-print-prog-name=<程序>  顯示編譯器組件 <程序> 的完整路徑-print-multiarch         Display the target's normalized GNU triplet, used asa component in the library path-print-multi-directory   顯示不同版本 libgcc 的根目錄-print-multi-lib         顯示命令行選項和多個版本庫搜索路徑間的映射-print-multi-os-directory 顯示操作系統庫的相對路徑-print-sysroot           顯示目標庫目錄-print-sysroot-headers-suffix 顯示用于尋找頭文件的 sysroot 后綴-Wa,<選項>               將逗號分隔的 <選項> 傳遞給匯編器-Wp,<選項>               將逗號分隔的 <選項> 傳遞給預處理器-Wl,<選項>               將逗號分隔的 <選項> 傳遞給鏈接器-Xassembler <參數>       將 <參數> 傳遞給匯編器-Xpreprocessor <參數>    將 <參數> 傳遞給預處理器-Xlinker <參數>          將 <參數> 傳遞給鏈接器-save-temps              不刪除中間文件-save-temps=<arg>        不刪除中間文件-no-canonical-prefixes   生成其他 gcc 組件的相對路徑時不生成規范化的前綴-pipe                    使用管道代替臨時文件-time                    為每個子進程計時-specs=<文件>            用 <文件> 的內容覆蓋內建的 specs 文件-std=<標準>              指定輸入源文件遵循的標準--sysroot=<目錄>         將 <目錄> 作為頭文件和庫文件的根目錄-B <目錄>                將 <目錄> 添加到編譯器的搜索路徑中-v                       顯示編譯器調用的程序-###                     與 -v 類似,但選項被引號括住,并且不執行命令-E                       僅作預處理,不進行編譯、匯編和鏈接-S                       編譯到匯編語言,不進行匯編和鏈接-c                       編譯、匯編到目標代碼,不進行鏈接-o <文件>                輸出到 <文件>-pie                     Create a position independent executable-shared                  Create a shared library-x <語言>                指定其后輸入文件的語言允許的語言包括:c c++ assembler none‘none’意味著恢復默認行為,即根據文件的擴展名猜測源文件的語言以 -g、-f、-m、-O、-W 或 --param 開頭的選項將由 gcc 自動傳遞給其調用的不同子進程。若要向這些進程傳遞其他選項,必須使用 -W<字母> 選項。下列選項只與特定語言相關 Ada:找不到對應的選項。使用 --help=Ada 顯示 Ada 前端所支持的所有選項下列選項只與特定語言相關 AdaSCIL:找不到對應的選項。使用 --help=AdaSCIL 顯示 AdaSCIL 前端所支持的所有選項下列選項只與特定語言相關 AdaWhy:找不到對應的選項。使用 --help=AdaWhy 顯示 AdaWhy 前端所支持的所有選項下列選項只與特定語言相關 C:-lang-asm                   此開關缺少可用文檔下列選項只與特定語言相關 C++:找不到對應的選項。使用 --help=C++ 顯示 C++ 前端所支持的所有選項下列選項只與特定語言相關 Fortran:-J<目錄>                  將 MODULE 文件放入目錄-Waliasing                  為可能的虛參重疊給出警告-Walign-commons             對 COMMON 塊對齊的警告-Wampersand                 若延續字符常量中缺少 & 則給出警告-Warray-temporaries         創建臨時數組時給出警告-Wc-binding-type            Warn if the type of a variable might be notinteroperable with C-Wcharacter-truncation      對被截斷的字符表達式給出警告-Wcompare-reals             Warn about equality comparisons involving REAL orCOMPLEX expressions-Wconversion-extra          對大多數隱式類型轉換給出警告-Wextra                     打印額外(可能您并不想要)的警告信息-Wfunction-elimination      Warn about function call elimination-Wimplicit-interface        對帶有隱式接口的調用給出警告-Wimplicit-procedure        對沒有隱式聲明的過程調用給出警告-Wintrinsic-shadow          如果用戶過程有與內建過程相同的名字則警告-Wintrinsics-std            當內建函數不是所選標準的一部分時給出警告-Wline-truncation           對被截斷的源文件行給出警告-Wreal-q-constant           Warn about real-literal-constants with 'q'exponent-letter-Wrealloc-lhs               Warn when a left-hand-side array variable isreallocated-Wrealloc-lhs-all           Warn when a left-hand-side variable is reallocated-Wsurprising                對“可疑”的構造給出警告-Wtabs                      允許使用不符合規范的制表符-Wtarget-lifetime           Warn if the pointer in a pointer assignment mightoutlive its target-Wunderflow                 數字常量表達式下溢時警告-Wunused-dummy-argument     對未使用的啞元給出警告。-cpp                        啟用預處理-cpp=                       此開關缺少可用文檔-faggressive-function-elimination Eliminate multiple function invokationsalso for impure functions-falign-commons             對齊 COMMON 塊-fall-intrinsics            無論選擇何種標準,所有內建過程均可用-fallow-leading-underscore  此開關缺少可用文檔-fautomatic                 不把局部變量 和 COMMON 塊如它們在SAVE 語句中被命名那樣來處理-fbackslash                 指定字符串中的反斜杠引入一個轉義字符-fbacktrace                 遇到運行時錯誤時打印函數調用回溯-fblas-matmul-limit=<n>     使用 BLAS進行矩陣乘法的矩陣大小下限-fcheck-array-temporaries   對為過程參數而臨時創建的數組產生一個運行時警告-fcheck=[...]               指定要進行哪種運行時檢查-fcoarray=[...]             指定要使用的集合數組并行化-fconvert=big-endian        為未格式化的文件使用大端在前的格式-fconvert=little-endian     為未格式化的文件使用小端在前的格式-fconvert=native            對未格式化的文件,使用本地格式-fconvert=swap              對未格式化的文件,交換字節次序-fcray-pointer              使用 Cray 指針擴展-fd-lines-as-code           在固定格式中忽略第一列的‘D’-fd-lines-as-comments       將第一列為‘D’的行視作注釋-fdefault-double-8          將默認雙精度種別設為 8 字節寬-fdefault-integer-8         將默認整數種別設為 8 字節寬-fdefault-real-8            將默認實型種別設為 8 字節寬-fdollar-ok                 允許在實體名中使用美元符號-fdump-core                 不起作用。為向前兼容保留的選項。-fdump-fortran-optimized    Display the code tree after front end optimization-fdump-fortran-original     解析后顯示代碼樹-fdump-parse-tree           Display the code tree after parsing; deprecatedoption-fexternal-blas             為大尺寸數組調用 matmul時應當使用一個外部 BLAS 庫-ff2c                       使用 f2c 調用約定-ffixed-form                假定源文件是固定格式的-ffixed-line-length-<n>     在固定模式下以 n 作為字符行寬-ffixed-line-length-none    在固定模式下允許任意的字符行寬-ffpe-trap=[...]            在以下浮點異常的情況下停止-ffree-form                 假定源文件是自由格式-ffree-line-length-<n>      在自由模式下以 n 作為字符行寬-ffree-line-length-none     在自由模式下允許任意的字符行寬-ffrontend-optimize         Enable front end optimization-fimplicit-none             不允許使用隱式類型,除非顯式地使用了IMPLICIT 語句-finit-character=<n>        將局部字符變量初始化 ASCII 值 n-finit-integer=<n>          將局部整數變量初始化為 n-finit-local-zero           局部變量初始化為零(與  g77 相同)-finit-logical=<true|false> 初始化局部邏輯變量-finit-real=<zero|nan|inf|-inf> 初始化局部實變量-finteger-4-integer-8       Interpret any INTEGER(4) as an INTEGER(8)-fintrinsic-modules-path    指定編譯好的內建模塊的位置-fintrinsic-modules-path=   指定編譯好的內建模塊的位置-fmax-array-constructor=<n> 一個數組構造函數中對象的最大數目-fmax-identifier-length=<n> 標識符的最大長度-fmax-stack-var-size=<n>    以字節大小表示的可以被放入堆棧的數組的最大大小-fmax-subrecord-length=<n>  子記錄的最大長度-fmodule-private            將模塊實體的默認訪問權限設置為PRIVATE。-fpack-derived              為派生類型使用盡可能緊實的布局-fprotect-parens            尊重表達式中的括號-frange-check               啟用編譯時范圍檢查-freal-4-real-10            Interpret any REAL(4) as a REAL(10)-freal-4-real-16            Interpret any REAL(4) as a REAL(16)-freal-4-real-8             Interpret any REAL(4) as a REAL(8)-freal-8-real-10            Interpret any REAL(8) as a REAL(10)-freal-8-real-16            Interpret any REAL(8) as a REAL(16)-freal-8-real-4             Interpret any REAL(8) as a REAL(4)-frealloc-lhs               在賦值中重分配左值-frecord-marker=4           對未格式化的文件,使用一個 4字節的記錄標記-frecord-marker=8           對未格式化的文件,使用一個 8字節的記錄格式-frecursive                 在堆棧上分配局部變量以允許間接遞歸-frepack-arrays             在過程入口處將數組段復制到一個連續的塊中-fsecond-underscore         當名字已經包含一個下劃線時添加第二個下劃線-fsign-zero                 在零值前使用負號-fstack-arrays              Put all local arrays on stack.-funderscoring              為外部可見的名字添加下劃線-fwhole-file                立即編譯所有程序單元并檢查接口-nocpp                      禁用預處理-static-libgfortran         靜態鏈接 GNU Fortran 助手庫(libgfortran)-std=f2003                  遵循 ISO Fortran 2003 標準-std=f2008                  遵循 ISO Fortran 2008 標準-std=f2008ts                Conform to the ISO Fortran 2008 standardincluding TS 29113-std=f95                    遵循 ISO Fortran 95 標準-std=gnu                    不特別遵循任何標準-std=legacy                 接受一定的擴展以支持傳統的代碼下列選項只與特定語言相關 Go:-L                          此開關缺少可用文檔-fgo-check-divide-overflow  Add explicit checks for division overflow inINT_MIN / -1-fgo-check-divide-zero      Add explicit checks for division by zero-fgo-dump-<type>            Dump Go frontend internal information-fgo-optimize-<type>        Turn on optimization passes in the frontend-fgo-pkgpath=<string>       Set Go package path-fgo-prefix=<string>        Set package-specific prefix for exported Go names-fgo-relative-import-path=  -fgo-relative-import-path=<path> Treat a relativeimport as relative to path-frequire-return-statement  Functions which return values must end withreturn statements下列選項只與特定語言相關 Java:--CLASSPATH                 此開關缺少可用文檔--bootclasspath             此開關缺少可用文檔--classpath                 此開關缺少可用文檔--encoding                  此開關缺少可用文檔--extdirs                   此開關缺少可用文檔--output-class-directory    此開關缺少可用文檔--output-class-directory=   此開關缺少可用文檔--resource                  此開關缺少可用文檔--resource=                 此開關缺少可用文檔-CLASSPATH                  此開關缺少可用文檔-MD_                        此開關缺少可用文檔-MMD_                       此開關缺少可用文檔-Wall-deprecation           此開關缺少可用文檔-Wall-javadoc               此開關缺少可用文檔-Wassert-identifier         此開關缺少可用文檔-Wboxing                    此開關缺少可用文檔-Wchar-concat               此開關缺少可用文檔-Wcondition-assign          此開關缺少可用文檔-Wconstructor-name          此開關缺少可用文檔-Wdep-ann                   此開關缺少可用文檔-Wdiscouraged               此開關缺少可用文檔-Wempty-block               此開關缺少可用文檔-Wenum-identifier           此開關缺少可用文檔-Wenum-switch               此開關缺少可用文檔-Wextraneous-semicolon      發現不建議使用的空語句時給出警告-Wfallthrough               此開關缺少可用文檔-Wfield-hiding              此開關缺少可用文檔-Wfinal-bound               此開關缺少可用文檔-Wfinally                   此開關缺少可用文檔-Wforbidden                 此開關缺少可用文檔-Whiding                    此開關缺少可用文檔-Windirect-static           此開關缺少可用文檔-Wintf-annotation           此開關缺少可用文檔-Wintf-non-inherited        此開關缺少可用文檔-Wjavadoc                   此開關缺少可用文檔-Wlocal-hiding              此開關缺少可用文檔-Wmasked-catch-block        此開關缺少可用文檔-Wnls                       此開關缺少可用文檔-Wno-effect-assign          此開關缺少可用文檔-Wnull                      此開關缺少可用文檔-Wout-of-date               當 .class 文件已過時時給出警告-Wover-ann                  此開關缺少可用文檔-Wparam-assign              此開關缺少可用文檔-Wpkg-default-method        此開關缺少可用文檔-Wraw                       此開關缺少可用文檔-Wredundant-modifiers       當指定了不必須的修飾符時給出警告-Wserial                    此開關缺少可用文檔-Wspecial-param-hiding      此開關缺少可用文檔-Wstatic-access             此開關缺少可用文檔-Wstatic-receiver           此開關缺少可用文檔-Wsuppress                  此開關缺少可用文檔-Wsynthetic-access          此開關缺少可用文檔-Wtasks                     此開關缺少可用文檔-Wtype-hiding               此開關缺少可用文檔-Wuncheck                   此開關缺少可用文檔-Wunnecessary-else          此開關缺少可用文檔-Wunqualified-field         此開關缺少可用文檔-Wunused-argument           此開關缺少可用文檔-Wunused-import             此開關缺少可用文檔-Wunused-label              有未使用的標號時警告-Wunused-local              此開關缺少可用文檔-Wunused-private            此開關缺少可用文檔-Wunused-thrown             此開關缺少可用文檔-Wuseless-type-check        此開關缺少可用文檔-Wvarargs-cast              此開關缺少可用文檔-Wwarning-token             此開關缺少可用文檔-bootclasspath              此開關缺少可用文檔-classpath                  此開關缺少可用文檔-encoding                   此開關缺少可用文檔--CLASSPATH                 不建議使用;請改用 --classpath-fassert                    允許使用 assert 關鍵字-fassume-compiled           此開關缺少可用文檔-fassume-compiled=          此開關缺少可用文檔-faux-classpath             此開關缺少可用文檔--bootclasspath=<路徑>    替換系統路徑-fbootstrap-classes         生成的類可被自舉加載-fcheck-references          檢查指向 NULL 的引用--classpath=<路徑>        設置類路徑-fcompile-resource=         此開關缺少可用文檔-fdisable-assertions        此開關缺少可用文檔-fdisable-assertions=       此開關缺少可用文檔-femit-class-file           輸出一個 class 文件-femit-class-files          -fmit-class-file 的別名-fenable-assertions         此開關缺少可用文檔-fenable-assertions=        此開關缺少可用文檔--encoding=<編碼>         選擇輸入編碼(默認來自您的區域選項)--extdirs=<路徑>          設定擴展目錄-ffilelist-file             輸入文件是一個文件名列表,指定了需要編譯的文件-fforce-classes-archive-check 總是檢查非 gcj 生成的類文檔-fhash-synchronization      假定運行時使用一張散列表完成從對象到其同步結構的映射-findirect-classes          在運行時生成類的實例-findirect-dispatch         為虛方法調用使用偏移表-finline-functions          Integrate functions not declared "inline" intotheir callers when profitable-fjni                       假定本地函數使用 JNI 實現-foptimize-static-class-initialization 啟用靜態類初始代碼優化-foutput-class-dir=         此開關缺少可用文檔-freduced-reflection        減少生成的反射元數據-fsaw-java-file             此開關缺少可用文檔-fsource-filename=          此開關缺少可用文檔-fsource=                   設定源語言版本-fstore-check               存儲到對象數組時進行可賦值性檢查-ftarget=                   指定目標虛擬機的版本-fuse-atomic-builtins       為內建原子操作生成代碼-fuse-boehm-gc              為 Boehm 生成代碼-fuse-divide-subroutine     調用一個庫子程序來完成整數除法-version                    顯示編譯器版本下列選項只與特定語言相關 LTO:-fltrans                    在局部轉化(LTRANS)模式下運行鏈接時優化器。-fltrans-output-list=       指定存放 LTRANS輸出的文件列表的文件。-fresolution=               符號解析文件-fwpa                       在全程序分析(WPA)模式下運行鏈接時優化器。下列選項只與特定語言相關 ObjC:找不到對應的選項。使用 --help=ObjC 顯示 ObjC 前端所支持的所有選項下列選項只與特定語言相關 ObjC++:-fobjc-call-cxx-cdtors      如果需要,生成特殊的 Objective-C方法來初始化/析構非簡單舊數據 C++變量下列選項與語言相關:--all-warnings              此開關缺少可用文檔--ansi                      此開關缺少可用文檔--assert                    此開關缺少可用文檔--assert=                   此開關缺少可用文檔--comments                  此開關缺少可用文檔--comments-in-macros        此開關缺少可用文檔--define-macro              此開關缺少可用文檔--define-macro=             此開關缺少可用文檔--dependencies              此開關缺少可用文檔--dump                      此開關缺少可用文檔--dump=                     此開關缺少可用文檔--imacros                   此開關缺少可用文檔--imacros=                  此開關缺少可用文檔--include                   此開關缺少可用文檔--include-barrier           此開關缺少可用文檔--include-directory         此開關缺少可用文檔--include-directory-after   此開關缺少可用文檔--include-directory-after=  此開關缺少可用文檔--include-directory=        此開關缺少可用文檔--include-prefix            此開關缺少可用文檔--include-prefix=           此開關缺少可用文檔--include-with-prefix       此開關缺少可用文檔--include-with-prefix-after 此開關缺少可用文檔--include-with-prefix-after= 此開關缺少可用文檔--include-with-prefix-before 此開關缺少可用文檔--include-with-prefix-before= 此開關缺少可用文檔--include-with-prefix=      此開關缺少可用文檔--include=                  此開關缺少可用文檔--no-line-commands          此開關缺少可用文檔--no-standard-includes      此開關缺少可用文檔--no-standard-libraries     此開關缺少可用文檔--no-warnings               此開關缺少可用文檔--output                    此開關缺少可用文檔--output-pch=               此開關缺少可用文檔--output=                   此開關缺少可用文檔--pedantic                  此開關缺少可用文檔--preprocess                此開關缺少可用文檔--print-missing-file-dependencies 此開關缺少可用文檔--trace-includes            此開關缺少可用文檔--traditional-cpp           此開關缺少可用文檔--trigraphs                 此開關缺少可用文檔--undefine-macro            此開關缺少可用文檔--undefine-macro=           此開關缺少可用文檔--user-dependencies         此開關缺少可用文檔--verbose                   此開關缺少可用文檔--write-dependencies        此開關缺少可用文檔--write-user-dependencies   此開關缺少可用文檔-A<問題>=<答案>         給出問題的答案。在問題前加一個‘-’將禁用其答案-C                          不丟棄注釋-CC                         展開宏時不丟棄注釋-D<宏>[=<值>]             將宏定義為值。如果只給出了宏,值將被定為1-E                          此開關缺少可用文檔-F <目錄>                 將目錄添加至主框架包含路徑的末尾-H                          打印使用到的頭文件名-I <目錄>                 將目錄添加至主包含路徑末尾-M                          生成 make 依賴項-MD                         生成 make 依賴規則并編譯-MF <文件>                將依賴項輸出到給定文件-MG                         將缺失的頭文件看作生成的文件-MM                         與 -M 類似但是忽略系統頭文件-MMD                        與 -MD 類似但是忽略系統頭文件-MP                         為所有頭文件生成偽目標-MQ <目標>                添加一個 MAKE 括起的目標-MT <目標>                添加一個不被括起的目標-P                          不生成 #line 指令-U<宏>                     取消定義宏-Wabi                       當結果與 ABI相容的編譯器的編譯結果不同時給出警告-Wabi-tag                   Warn if a subobject has an abi_tag attribute thatthe complete object type does not have-Waddress                   使用可疑的內存地址時給出警告-Wall                       啟用大部分警告信息-Wassign-intercept          當 Objective-C賦值可能為垃圾回收所介入時給出警告-Wbad-function-cast         當把函數轉換為不兼容類型時給出警告-Wbuiltin-macro-redefined   當內建預處理宏未定義或重定義時給出警告-Wc++-compat                當在 C 語言中使用了 C 與 C++交集以外的構造時給出警告-Wc++0x-compat              Deprecated in favor of -Wc++11-compat-Wc++11-compat              Warn about C++ constructs whose meaning differsbetween ISO C++ 1998 and ISO C++ 2011-Wcast-qual                 當類型轉換丟失限定信息時給出警告-Wchar-subscripts           當下標類型為“char”時給出警告-Wclobbered                 對能為"longjmp"或"vfork"所篡改的變量給出警告-Wcomment                   對可能嵌套的注釋和長度超過一個物理行長的C++ 注釋給出警告-Wcomments                  -Wcomment 的同義詞-Wconversion                當隱式類型轉換可能改變值時給出警告-Wconversion-null           將 NULL 轉換為非指針類型時給出警告-Wctor-dtor-privacy         當所有構造函數和析構函數都是私有時給出警告-Wdeclaration-after-statement 當聲明出現在語句后時給出警告-Wdelete-non-virtual-dtor   Warn about deleting polymorphic objects with non-virtual destructors-Wdeprecated                使用不建議的編譯器特性、類、方法或字段時給出警告-Wdiv-by-zero               對編譯時發現的零除給出警告-Wdouble-promotion          對從“float”到“double”的隱式轉換給出警告-Weffc++                    對不遵循《EffetiveC++》的風格給出警告-Wempty-body                當 if 或 else 語句體為空時給出警告-Wendif-labels              當 #elif 和 #endif后面跟有其他標識符時給出警告-Wenum-compare              對不同枚舉類型之間的比較給出警告-Werror                     所有的警告都當作是錯誤-Werror-implicit-function-declaration 不建議使用此開關;請改用-Werror=implicit-function-declaration-Wfloat-equal               當比較浮點數是否相等時給出警告-Wformat                    對 printf/scanf/strftime/strfmon中的格式字符串異常給出警告-Wformat-contains-nul       當格式字符串包含 NUL 字節時給出警告-Wformat-extra-args         當傳遞給格式字符串的參數太多時給出警告-Wformat-nonliteral         當格式字符串不是字面值時給出警告-Wformat-security           當使用格式字符串的函數可能導致安全問題時給出警告-Wformat-y2k                當 strftime 格式給出 2位記年時給出警告-Wformat-zero-length        對長度為 0 的格式字符串給出警告-Wformat=                   對 printf/scanf/strftime/strfmon中的格式字符串異常給出警告-Wignored-qualifiers        當類型限定符被忽略時給出警告。-Wimplicit                  對隱式函數聲明給出警告-Wimplicit-function-declaration 對隱式函數聲明給出警告-Wimplicit-int              當聲明未指定類型時給出警告-Wimport                    此開關缺少可用文檔-Winherited-variadic-ctor   Warn about C++11 inheriting constructors when thebase has a variadic constructor-Winit-self                 對初始化為自身的變量給出警告。-Wint-to-pointer-cast       當將一個大小不同的整數轉換為指針時給出警告-Winvalid-offsetof          對“offsetof”宏無效的使用給出警告-Winvalid-pch               在找到了 PCH文件但未使用的情況給出警告-Wjump-misses-init          當跳轉略過變量初始化時給出警告-Wliteral-suffix            Warn when a string or character literal isfollowed by a ud-suffix which does not begin withan underscore.-Wlogical-op                當邏輯操作結果似乎總為真或假時給出警告-Wlong-long                 當使用 -pedantic 時不對“longlong”給出警告-Wmain                      對可疑的“main”聲明給出警告-Wmaybe-uninitialized       Warn about maybe uninitialized automatic variables-Wmissing-braces            若初始值設定項中可能缺少花括號則給出警告-Wmissing-declarations      當全局函數沒有前向聲明時給出警告-Wmissing-field-initializers 若結構初始值設定項中缺少字段則給出警告-Wmissing-format-attribute  此開關缺少可用文檔-Wmissing-include-dirs      當用戶給定的包含目錄不存在時給出警告-Wmissing-parameter-type    K&R風格函數參數聲明中未指定類型限定符時給出警告-Wmissing-prototypes        全局函數沒有原型時給出警告-Wmudflap                   當構造未被 -fmudflap 處理時給出警告-Wmultichar                 使用多字節字符集的字符常量時給出警告-Wnarrowing                 Warn about narrowing conversions within { } thatare ill-formed in C++11-Wnested-externs            當“extern”聲明不在文件作用域時給出警告-Wnoexcept                  Warn when a noexcept expression evaluates tofalse even though the expression can't actuallythrow-Wnon-template-friend       在模板內聲明未模板化的友元函數時給出警告-Wnon-virtual-dtor          當析構函數不是虛函數時給出警告-Wnonnull                   當將 NULL 傳遞給需要非 NULL的參數的函數時給出警告-Wnormalized=<id|nfc|nfkc>  對未歸一化的 Unicode 字符串給出警告-Wold-style-cast            程序使用 C風格的類型轉換時給出警告-Wold-style-declaration     對聲明中的過時用法給出警告-Wold-style-definition      使用舊式形參定義時給出警告-Woverlength-strings        當字符串長度超過標準規定的可移植的最大長度時給出警告-Woverloaded-virtual        重載虛函數名時給出警告-Woverride-init             覆蓋無副作用的初始值設定時給出警告-Wpacked-bitfield-compat    當緊實位段的偏移量因 GCC 4.4而改變時給出警告-Wparentheses               可能缺少括號的情況下給出警告-Wpedantic                  給出標準指定的所有警告信息-Wpmf-conversions           當改變成員函數指針的類型時給出警告-Wpointer-arith             當在算術表達式中使用函數指針時給出警告-Wpointer-sign              賦值時如指針符號不一致則給出警告-Wpointer-to-int-cast       將一個指針轉換為大小不同的整數時給出警告-Wpragmas                   對錯誤使用的 pragma 加以警告-Wproperty-assign-default   Warn if a property for an Objective-C object hasno assign semantics specified-Wprotocol                  當繼承來的方法未被實現時給出警告-Wpsabi                     此開關缺少可用文檔-Wredundant-decls           對同一個對象多次聲明時給出警告-Wreorder                   編譯器將代碼重新排序時給出警告-Wreturn-local-addr         Warn about returning a pointer/reference to alocal or temporary variable.-Wreturn-type               當 C函數的返回值默認為“int”,或者 C++函數的返回類型不一致時給出警告-Wselector                  當選擇子有多個方法時給出警告-Wsequence-point            當可能違反定序點規則時給出警告-Wsign-compare              在有符號和無符號數間進行比較時給出警告-Wsign-conversion           為有符號和無符號整數間的隱式類型轉換給出警告-Wsign-promo                當重載將無符號數提升為有符號數時給出警告-Wsizeof-pointer-memaccess  此開關缺少可用文檔-Wstrict-aliasing=          當代碼可能破壞強重疊規則時給出警告-Wstrict-null-sentinel      將未作轉換的 NULL用作哨兵時給出警告-Wstrict-overflow=          禁用假定有符號數溢出行為未被定義的優化-Wstrict-prototypes         使用了非原型的函數聲明時給出警告-Wstrict-selector-match     當備選方法的類型簽字不完全匹配時給出警告-Wsuggest-attribute=format  當函數可能是 format屬性的備選時給出警告-Wswitch                    當使用枚舉類型作為開關變量,沒有提供default 分支,但又缺少某個 case時給出警告-Wswitch-default            當使用枚舉類型作為開關變量,但沒有提供“default”分支時給出警告-Wswitch-enum               當使用枚舉類型作為開關變量但又缺少某個case 時給出警告-Wsync-nand                 當 __sync_fetch_and_nand 和__sync_nand_and_fetch內建函數被使用時給出警告-Wsynth                     不建議使用。此開關不起作用。-Wsystem-headers            不抑制系統頭文件中的警告-Wtraditional               使用了傳統 C不支持的特性時給出警告-Wtraditional-conversion    原型導致的類型轉換與無原型時的類型轉換不同時給出警告-Wtrigraphs                 當三字母序列可能影響程序意義時給出警告-Wundeclared-selector       當使用 @selector()卻不作事先聲明時給出警告-Wundef                     當 #if指令中用到未定義的宏時給出警告-Wuninitialized             自動變量未初始化時警告-Wunknown-pragmas           對無法識別的 pragma 加以警告-Wunsuffixed-float-constants 對不帶后綴的浮點常量給出警告-Wunused                    啟用所有關于“XX未使用”的警告-Wunused-local-typedefs     Warn when typedefs locally defined in a functionare not used-Wunused-macros             當定義在主文件中的宏未被使用時給出警告-Wunused-result             當一個帶有 warn_unused_result屬性的函數的調用者未使用前者的返回值時給出警告-Wuseless-cast              Warn about useless casts-Wvarargs                   Warn about questionable usage of the macros usedto retrieve variable arguments-Wvariadic-macros           Warn about using variadic macros-Wvirtual-move-assign       Warn if a virtual base has a non-trivial moveassignment operator-Wvla                       使用變長數組時警告-Wvolatile-register-var     當一個寄存器變量被聲明為 volatile時給出警告-Wwrite-strings             在 C++中,非零值表示將字面字符串轉換為‘char*’時給出警告。在 C中,給出相似的警告,但這種類型轉換是符合ISO C 標準的。-Wzero-as-null-pointer-constant Warn when a literal '0' is used as nullpointer-ansi                       -std=c89 (對 C 來說) 或 -std=c++98 (對 C++來說)的同義詞-d<字母>                  為指定的某趟匯譯啟用內存轉儲-fRTS=                      Select the runtime-faccess-control            執行類成員訪問控制語義-fada-spec-parent=          -fada-spec-parent=unit  Dump Ada specs as childunits of given parent-fall-virtual               此開關缺少可用文檔-fallow-parameterless-variadic-functions Allow variadic functions withoutnamed parameter-falt-external-templates    不再受支持-fasm                       識別“asm”關鍵字-fbuilding-libgcc           此開關缺少可用文檔-fbuiltin                   識別內建函數-fbuiltin-                  此開關缺少可用文檔-fcanonical-system-headers  Where shorter, use canonicalized paths to systemsheaders.-fcheck-new                 檢查 new 的返回值-fcond-mismatch             允許‘?’運算符的參數有不同的類型-fconserve-space            不起作用。為向前兼容保留的選項。-fconst-string-class=<名字> 使用名字作為常量字符串類的名稱-fconstexpr-depth=<number>  Specify maximum constexpr recursion depth-fdebug-cpp                 Emit debug annotations during preprocessing-fdeduce-init-list          enable deduction of std::initializer_list for atemplate type parameter from a brace-enclosedinitializer-list-fdefault-inline            不起作用。為向前兼容保留的選項。-fdirectives-only           僅預處理指示。-fdollars-in-identifiers    允許‘$’作為標識符的一部分-fdump-ada-spec             Write all declarations as Ada code transitively-fdump-ada-spec-slim        Write all declarations as Ada code for the givenfile only-felide-constructors        此開關缺少可用文檔-femit-struct-debug-baseonly 積極地縮減結構體的調試信息-femit-struct-debug-detailed=<規格列表> 詳細指定如何縮減結構體的調試信息-femit-struct-debug-reduced 保守地縮減結構體的調試信息-fenforce-eh-specs          生成檢查異常規范的代碼-fenum-int-equiv            此開關缺少可用文檔-fexec-charset=<字符集>  將所有字符串和字符常量轉換到字符集-fext-numeric-literals      Interpret imaginary, fixed-point, or other gnunumber suffix as the corresponding number literalrather than a user-defined number literal.-fextended-identifiers      允許標識符中出現 Unicode 字符名(\u 和\U)-fextern-tls-init           Support dynamic initialization of thread-localvariables in a different translation unit-fexternal-templates        此開關缺少可用文檔-ffor-scope                 for循環初始化中定義的變量作用域局限于循環內-ffreestanding              不假定標準 C 庫和“main”存在-ffriend-injection          將友元函數聲明視作包含它的命名空間中的有效聲明-fgnu-keywords              識別 GNU 定義的關鍵字-fgnu-runtime               為 GNU 運行時環境生成代碼-fgnu89-inline              為內聯函數使用傳統的 GNU 語義-fguiding-decls             此開關缺少可用文檔-fhandle-exceptions         此開關缺少可用文檔-fhonor-std                 此開關缺少可用文檔-fhosted                    假定一般的 C 執行環境-fhuge-objects              不再受支持-fimplement-inlines         導出被內聯的函數-fimplicit-inline-templates 允許內聯模板隱式實例化-fimplicit-templates        允許模板隱式實例化-finput-charset=<字符集> 指定源代碼的默認字符集-fkeep-inline-dllexport     除非必需,不生成 DLL 導出的內聯函數-flabels-ok                 此開關缺少可用文檔-flax-vector-conversions    允許具有不同元素數量和/或元素類型的向量間的轉換-fms-extensions             使用微軟擴展時不給出警告-fmudflap                   為單線程程序添加 mudflap 邊界檢查-fmudflapir                 插入 mudflag 時忽略讀操作-fmudflapth                 為多線程程序添加 mudflap 邊界檢查-fname-mangling-version-    此開關缺少可用文檔-fnew-abi                   此開關缺少可用文檔-fnext-runtime              為 NeXT (蘋果 Mac OS X)運行時環境生成代碼-fnil-receivers             假定 Objective-C 消息的接受者可能是 nil-fnonansi-builtins          此開關缺少可用文檔-fnonnull-objects           此開關缺少可用文檔-fnothrow-opt               Treat a throw() exception specification asnoexcept to improve code size-fobjc-abi-version=         Specify which ABI to use for Objective-C familycode and meta-data generation.-fobjc-direct-dispatch      允許快速跳轉至消息分發者-fobjc-exceptions           啟用 Objective-C 異常和同步語法-fobjc-gc                   在 Objective-C/Objective-C++程序中啟用垃圾收集-fobjc-nilcheck             Enable inline checks for nil receivers with theNeXT runtime and ABI version 2.-fobjc-sjlj-exceptions      啟用 Objective-C setjmp 異常處理運行時-fobjc-std=objc1            Conform to the Objective-C 1.0 language asimplemented in GCC 4.0-fopenmp                    啟用 OpenMP(對 Fortran 而言也同時設定-frecursive)-foperator-names            識別“compl”、“xor”等 C++ 關鍵詞-foptional-diags            不起作用。為向前兼容保留的選項。-fpch-deps                  此開關缺少可用文檔-fpch-preprocess            即使在預處理時也搜索并使用 PCH 文件-fpermissive                將兼容性錯誤降格為警告-fplan9-extensions          啟用九號計劃語言擴展-fpreprocessed              將輸入文件當作已經預處理過的-fpretty-templates          -fno-pretty-templates不使用模板簽名加實參的方式美化模板特例化的打印-freplace-objc-classes      指定對象文件可能在運行時被換入以允許“修復并繼續”調試模式-frepo                      啟用模板自動實例化-frtti                      生成運行時類型描述信息-fshort-double              令 double 使用 float 的大小-fshort-enums               為枚舉類型使用盡可能窄的整數類型-fshort-wchar               強制指定“wchar_t”的內在類型為“unsignedshort”-fsigned-bitfields          沒有給定“signed”或“unsigned”時將位段視作有符號的-fsigned-char               使“char”類型默認為有符號-fsquangle                  此開關缺少可用文檔-fstats                     顯示編譯過程中累計的統計數字-fstrict-enums              Assume that values of enumeration type are alwayswithin the minimum range of that type-fstrict-prototype          此開關缺少可用文檔-ftabstop=<N>               指定報告列號時制表位間的距離-ftemplate-backtrace-limit= Set the maximum number of template instantiationnotes for a single warning or error-ftemplate-depth-           此開關缺少可用文檔-ftemplate-depth=<N>        指定模板實例化的最大深度-fthis-is-variable          此開關缺少可用文檔-fno-threadsafe-statics     不為局部靜態變量生成線程安全的初始化代碼-ftrack-macro-expansion     此開關缺少可用文檔-ftrack-macro-expansion=    -ftrack-macro-expansion=<0|1|2>  Track locationsof tokens coming from macro expansion and displaythem in error messages-funsigned-bitfields        未指定“signed”或“unsigned”時默認位段為無符號的-funsigned-char             使“char”類型默認為無符號-fuse-cxa-atexit            將 __cxa_atexit 而非 atexit登記為析構函數-fuse-cxa-get-exception-ptr 在異常處理中使用 __cxa_get_exception_ptr-fvisibility-inlines-hidden Marks all inlined functions and methods as havinghidden visibility-fvisibility-ms-compat      默認使用與 Microsoft Visual Studio匹配的可見性-fvtable-gc                 不再受支持-fvtable-thunks             不再受支持-fweak                      將公共符號視作弱符號-finput-charset=<字符集> 將所有寬字符串和字符常量都轉換為字符集-fworking-directory         生成一個指向當前工作目錄的 #line預處理指令-fxref                      不再受支持-fzero-link                 為 Zero-Link 模式生成后期類查找(通過objc_getClass())-gant                       Catch typos-gen-decls                  將聲明轉儲到一個 .decl 文件中-gnat<選項>               指定給 GNAT 的選項-gnatO                      Set name of output ALI file (internal switch)-idirafter <目錄>         將目錄添加至系統包含路徑末尾-imacros <文件>           接受文件中定義的宏-imultilib <目錄>         將目錄設定為 multilib 的包含子目錄-include <文件>           在包含其它文件之前先包含該文件的內容-iprefix <路徑>           將路徑指定為下兩個選項的前綴-iquote <目錄>            將目錄添加至括起的包含路徑末尾-isysroot <目錄>          將目錄設為系統根目錄-isystem <目錄>           將目錄添加至系統包含路徑開頭-iwithprefix <目錄>       將目錄添加至系統包含路徑末尾-iwithprefixbefore <目錄> 將目錄添加至主包含路徑末尾-nostdinc                   不搜索標準系統頭文件目錄(但仍將使用由-isystem 指定的目錄)-nostdinc++                 不搜索 C++ 標準系統頭文件目錄-nostdlib                   Do not look for object files in standard path-o <文件>                 將輸出寫入文件-pedantic                   此開關缺少可用文檔-print-objc-runtime-info    生成有平臺相關特性的 C 頭文件-remap                      包含文件時映射短文件名-std=c++03                  Conform to the ISO 1998 C++ standard revised bythe 2003 technical corrigendum-std=c++0x                  Deprecated in favor of -std=c++11-std=c++11                  Conform to the ISO 2011 C++ standard(experimental and incomplete support)-std=c++1y                  Conform to the ISO 201y(7?) C++ draft standard(experimental and incomplete support)-std=c++98                  Conform to the ISO 1998 C++ standard revised bythe 2003 technical corrigendum-std=c11                    Conform to the ISO 2011 C standard (experimentaland incomplete support)-std=c1x                    Deprecated in favor of -std=c11-std=c89                    遵循 ISO 1990 C 標準-std=c90                    遵循 ISO 1990 C 標準-std=c99                    遵循 ISO 1999 C 標準-std=c9x                    不建議使用,請改用 -std=c99-std=gnu++03                Conform to the ISO 1998 C++ standard revised bythe 2003 technical corrigendum with GNU extensions-std=gnu++0x                Deprecated in favor of -std=gnu++11-std=gnu++11                Conform to the ISO 2011 C++ standard with GNUextensions (experimental and incomplete support)-std=gnu++1y                Conform to the ISO 201y(7?) C++ draft standardwith GNU extensions (experimental and incompletesupport)-std=gnu++98                Conform to the ISO 1998 C++ standard revised bythe 2003 technical corrigendum with GNU extensions-std=gnu11                  Conform to the ISO 2011 C standard with GNUextensions (experimental and incomplete support)-std=gnu1x                  Deprecated in favor of -std=gnu11-std=gnu89                  遵循 ISO 1990 C 標準,也支持 GNU 擴展-std=gnu90                  遵循 ISO 1990 C 標準,也支持 GNU 擴展-std=gnu99                  遵循 ISO 1999 C 標準,也支持 GNU 擴展-std=gnu9x                  不建議使用,請改用 -std=gnu99-std=iso9899:1990           遵循 ISO 1990 C 標準-std=iso9899:199409         遵循 ISO 1990 C 標準于 1994年修訂的版本-std=iso9899:1999           遵循 ISO 1999 C 標準-std=iso9899:199x           不建議使用,為 -std=iso9899:1999 所取代-std=iso9899:2011           Conform to the ISO 2011 C standard (experimentaland incomplete support)-traditional-cpp            啟用傳統預處理-trigraphs                  支持 ISO C 三元符-undef                      不預定義系統或 GCC 特定的宏-v                          啟用詳細輸出-w                          不顯示警告--param 選項可接受以下參數:predictable-branch-outcome  被認為可以預測的分支的最大估算結果inline-min-speedup          The minimal estimated speedup allowing inliner toignore inline-insns-single and inline-isnsns-automax-inline-insns-single     單個可內聯的函數體最多能包含的指令數max-inline-insns-auto       自動內聯時指令的最大數量max-inline-insns-recursive  由于嵌套內聯造成的內聯函數代碼膨脹的上限值(指令數)max-inline-insns-recursive-auto 由于嵌套內聯造成的非內聯函數代碼膨脹的上限值(指令數)max-inline-recursive-depth  內聯函數中嵌套內聯的最大深度max-inline-recursive-depth-auto 非內聯函數中嵌套內聯的最大深度min-inline-recursive-probability 僅當被執行的調用的概率超過此參數時方進行遞歸地內聯max-early-inliner-iterations 早期內聯器可以進行的嵌套間接內聯的最大數量comdat-sharing-probability  Probability that COMDAT function will be sharedwith different compilation unitpartial-inlining-entry-probability 進行部分內聯時分離區域入口基本塊占函數入口基本塊的百分比概率的上限max-variable-expansions-in-unroller 如果使用了 -fvariable-expansion-in-unroller,即指單個變量在循環展開時可以同時被展開的次數min-vect-loop-bound         使用 -ftree-vectorize時考慮進行向量化的循環次數下限max-delay-slot-insn-search  考慮填充入延遲槽中的最大指令數max-delay-slot-live-search  用以發現準確的活動寄存器信息的最大指令數量max-pending-list-length     調度候選操作列表的最大長度max-modulo-backtrack-attempts The maximum number of backtrack attempts thescheduler should make when modulo scheduling alooplarge-function-insns        超過這個大小的函數體被認為是大的large-function-growth       內聯大函數造成的代碼膨脹的上限(以百分數的形式給出)large-unit-insns            超過這個大小的翻譯單元被認為是大的inline-unit-growth          給定的編譯單元因內聯造成的體積膨脹上限(以百分數表示)ipcp-unit-growth            給定的編譯單元因跨進程常量傳遞造成的編譯單元體積膨脹上限(以百分數表示)early-inlining-insns        對單個調用進行的早期內聯所導致的函數體代碼膨脹的最大估計值large-stack-frame           超過這個大小的棧幀被認為是大的large-stack-frame-growth    內聯造成的棧幀膨脹的上限(以百分數的形式給出)max-gcse-memory             GCSE 可分配的最大內存量max-gcse-insertion-ratio    The maximum ratio of insertions to deletions ofexpressions in GCSEgcse-after-reload-partial-fraction 重新載入后進行部分冗余消除的比例閾值gcse-after-reload-critical-fraction 重新載入后允許進行冗余消除的關鍵邊執行次數的比例閾值gcse-cost-distance-ratio    計算一個表達式被 GCSE優化移動的最大距離時的比例因子gcse-unrestricted-cost      指定 GCSE優化不約束一個表達式能被移動的距離時的代價max-hoist-depth             Maximum depth of search in the dominator tree forexpressions to hoistmax-unrolled-insns          單個循環中考慮展開的最大指令數max-average-unrolled-insns  單個循環中考慮展開的平均最大指令數max-unroll-times            單個循環最多可以被展開的次數max-peeled-insns            剝離后的循環所能有的最大指令數max-peel-times              單個循環最大的剝離數max-peel-branches           The maximum number of branches on the paththrough the peeled sequencemax-completely-peeled-insns 一個完全剝離的循環所能有的最大指令數max-completely-peel-times   一個完全剝離的單個循環最大的剝離數max-once-peeled-insns       被剝離后只卷繞一次的循環包含的最多指令數max-completely-peel-loop-nest-depth 一個完全剝離的循環嵌套所能有的最大深度max-unswitch-insns          去開關后的循環所能有的最大指令數max-unswitch-level          單個循環中考慮去開關的最大指令數max-iterations-to-track     暴力迭代次數分析算法評估迭代次數的上限max-iterations-computation-cost 用于計算迭代次數的表達式的開銷的上限值sms-max-ii-factor           調整擺動模調度器調度循環時使用的上限的一個因素sms-min-sc                  The minimum value of stage count that swingmodulo scheduler will generate.sms-dfa-history             使用 DFA檢查沖突時擺動模調度器考慮的周期數sms-loop-average-count-threshold 由擺動模調度程序考慮的關于平均循環計數的閾值hot-bb-count-ws-permille    A basic block profile count is considered hot ifit contributes to the given permillage of theentire profiled executionhot-bb-frequency-fraction   當某基本塊執行頻率超過函數中基本塊執行的最大頻率的指定百分比時,該基本塊可被考慮為熱點代碼align-threshold             當某基本塊執行頻率超過函數中基本塊執行的最大頻率的指定百分比時,該基本塊將被對齊align-loop-iterations       對齊循環次數大于或等于設定值的循環max-predicted-iterations    靜態預測時的最多循環次數tracer-dynamic-coverage-feedback 必須被蹤跡形成所覆蓋的函數百分比,以執行頻率加權。當取樣反饋可用時使用tracer-dynamic-coverage     必須被蹤跡形成所覆蓋的函數百分比,以執行頻率加權。當取樣反饋不可用時使用tracer-max-code-growth      以百分比表示的尾復制所引起的最大代碼膨脹tracer-min-branch-ratio     當最優邊的反向概率小于此閾值(以百分數表示)時停止反向增長tracer-min-branch-probability-feedback 當最優邊的概率小于此限值(以百分數表示)時,停止前向增長。當取樣反饋可用時使用。tracer-min-branch-probability 當最優邊的概率小于此限值(以百分數表示)時,停止前向增長。當取樣反饋不可用時使用。max-crossjump-edges         考慮進行交叉跳轉的最大入邊數量min-crossjump-insns         考慮進行交叉跳轉的最小匹配指令數量max-grow-copy-bb-insns      復制基本塊時最大的展開因子max-goto-duplication-insns  分解計算轉移時復制指令的數量上限max-cse-path-length         公因式消去時考慮的最大路徑長度max-cse-insns               清空前公因式消去處理的最大指令數lim-expensive               循環不變量轉移時一條昂貴的表達式的最小開銷iv-consider-all-candidates-bound 當備選少于此設定值時所有備選都將為歸納變量優化所考慮iv-max-considered-uses      對歸納變量數少于設定值的循環進行歸納變量優化iv-always-prune-cand-set-bound 當備選歸納變量少于設定值時總是設法在優化過程中消除未使用的歸納變量scev-max-expr-size          用在標量演化分析器中的表達式的大小上限scev-max-expr-complexity    Bound on the complexity of the expressions in thescalar evolutions analyzeromega-max-vars              Omega 約束系統中變量數的上限omega-max-geqs              Omega 約束系統中不等式數量的上限omega-max-eqs               Omega 約束系統中等式數量的上限omega-max-wild-cards        Omega 約束系統中通配符數量的上限omega-hash-table-size       Omega 約束系統中散列表大小的上限omega-max-keys              Omega 約束系統中omega-eliminate-redundant-constraints 設為 1時,使用昂貴的方法來消除所有冗余的約束vect-max-version-for-alignment-checks 向量循環版本化插入的運行時對齊檢查次數的上限vect-max-version-for-alias-checks 向量循環版本化插入的運行時別名檢查次數的上限max-cselib-memory-locations cselib 最多記錄的內存位置ggc-min-expand              引發垃圾收集的堆展開的最小值,以占堆總大小的百分比給出ggc-min-heapsize            開始垃圾回收時最小的堆大小,以千字節表示max-reload-search-insns     后向搜索以尋找等價重載入時要搜索的最大指令數量sink-frequency-threshold    Target block's relative execution frequency (as apercentage) required to sink a statementmax-sched-region-blocks     一個區域中考慮進行塊間調度的最大塊數max-sched-region-insns      一個區域中考慮進行塊間調度的最大指令數max-pipeline-region-blocks  一個區域中考慮進行塊間調度的最大塊數max-pipeline-region-insns   一個區域中考慮進行塊間調度的最大指令數min-spec-prob               塊間投機調度時到達一個源塊的最小概率max-sched-extend-regions-iters 通過 CFG 以擴展區域的最大循環次數max-sched-insn-conflict-delay 考慮進行投機移動的指令的最大沖突延遲數sched-spec-prob-cutoff      以百分比表示的投機成功的最小概率,影響對投機指令的調度sched-state-edge-prob-cutoff The minimum probability an edge must have forthe scheduler to save its state across it.selsched-max-lookahead      進行選擇調度時前瞻窗口的最大尺寸selsched-max-sched-times    指定一條指令最多能被調度幾次selsched-insns-to-rename    在適合行重命名的就緒列表中最多的指令數sched-mem-true-dep-cost     可能沖突的存儲和裝載之間的最小距離max-last-value-rtl          可以被記作組合器的最終值的最大 RTL節點數integer-share-limit         共享整型常量的上界ssp-buffer-size             考慮預防堆棧溢出的緩沖區的下限值max-jump-thread-duplication-stmts 線索化跳轉時一個以被復制的塊中所能包含的最大語句數max-fields-for-field-sensitive 在指針分析將該結構視為單一變量前結構包含的最大字段數max-sched-ready-insns       首趟調度考慮準備生成的指令的最大數量max-dse-active-local-stores Maximum number of active local stores in RTL deadstore eliminationprefetch-latency            預取操作完成前執行指令的數目simultaneous-prefetches     可以同時運行的預取操作數目l1-cache-size               一級緩存大小l1-cache-line-size          一級緩存列長度l2-cache-size               二級緩存大小use-canonical-types         是否使用合乎規范的類型max-partial-antic-length    進行樹上部分冗余消除時部分可預期集的最大長度sccvn-max-scc-size          在 SCCVN 停止處理一個函數以前 SCC的最大尺寸sccvn-max-alias-queries-per-access Maximum number of disambiguations toperform per memory accessira-max-loops-num           用作區域寄存器分配的最大循環數ira-max-conflict-table-size 以 MB 表示的沖突表大小上限ira-loop-reserved-regs      保留不為循環不變量轉移使用的各種寄存器的數量switch-conversion-max-branch-ratio 當數組大小與開關分支的比率大于此值時開關轉換不會發生loop-block-tile-size        循環分塊中每小塊的大小graphite-max-nb-scop-params 一個靜態控制部分(ScoP)中參數的最大數量graphite-max-bbs-per-function Graphite可分析的每函數所包含的基本塊數量上限loop-max-datarefs-for-datadeps Maximum number of datarefs in loop forbuilding loop data dependenciesloop-invariant-max-bbs-in-loop 用作循環不變量轉移的循環中基本塊的最大數量slp-max-insns-in-bb         考慮進行基本塊向量化的基本塊能包含的指令數上限min-insn-to-prefetch-ratio  為有未知路程計數的循環啟用預取時最小的指令/預取比prefetch-min-insn-to-mem-ratio 為循環啟用預取時最小的指令/內存操作比max-vartrack-size           變量跟蹤散列表的最大尺寸max-vartrack-expr-depth     Max. recursion depth for expanding var trackingexpressionsmax-vartrack-reverse-op-size Max. size of loc list for which reverse opsshould be addedmin-nondebug-insn-uid       非調試指令所使用的最小 UIDipa-sra-ptr-growth-factor   IPA-SRA考慮將指向的聚合的指針替換為參數時這些參數總和大小相對原指針參數大小倍數的最大值tm-max-aggregate-size       Size in bytes after which thread-local aggregatesshould be instrumented with the logging functionsinstead of save/restore pairsipa-cp-value-list-size      Maximum size of a list of values associated witheach parameter for interprocedural constantpropagationipa-cp-eval-threshold       Threshold ipa-cp opportunity evaluation that isstill considered beneficial to clone.ipa-max-agg-items           Maximum number of aggregate content items for aparameter in jump functions and latticesipa-cp-loop-hint-bonus      Compile-time bonus IPA-CP assigns to candidateswhich make loop bounds or strides known.lto-partitions              Number of partitions the program should be splittolto-min-partition           Minimal size of a partition for LTO (in estimatedinstructions)cxx-max-namespaces-for-diagnostic-help Maximum number of namespaces to searchfor alternatives when name lookup failsmax-stores-to-sink          Maximum number of conditional store pairs thatcan be sunkcase-values-threshold       The smallest number of different values for whichit is best to use a jump-table instead of a treeof conditional branches, if 0, use the defaultfor the machineallow-load-data-races       Allow new data races on loads to be introducedallow-store-data-races      Allow new data races on stores to be introducedallow-packed-load-data-races Allow new data races on packed data loads to beintroducedallow-packed-store-data-races Allow new data races on packed data stores tobe introducedtree-reassoc-width          Set the maximum number of instructions executedin parallel in reassociated tree. If 0, use thetarget dependent heuristic.max-tail-merge-comparisons  Maximum amount of similar bbs to compare a bb withmax-tail-merge-iterations   Maximum amount of iterations of the pass over afunctionmax-tracked-strlens         Maximum number of strings for which strlenoptimization pass will track string lengthssched-pressure-algorithm    Which -fsched-pressure algorithm to applymax-slsr-cand-scan          Maximum length of candidate scans for straight-line strength reduction下列選項控制編譯器警告信息:--extra-warnings            此開關缺少可用文檔-W                          不建議使用此開關;請改用 -Wextra-Waggregate-return          當返回結構、聯合或數組時給出警告-Waggressive-loop-optimizations Warn if a loop with constant number ofiterations triggers undefined behavior-Warray-bounds              當數組訪問越界時給出警告-Wattributes                當對屬性的使用不合適時給出警告-Wcast-align                當轉換指針類型導致對齊邊界增長時給出警告-Wcoverage-mismatch         Warn in case profiles in -fprofile-use do notmatch-Wcpp                       Warn when a #warning directive is encountered-Wdeprecated-declarations   對 __attribute__((deprecated)) 聲明給出警告-Wdisabled-optimization     當某趟優化被禁用時給出警告-Wfree-nonheap-object       Warn when attempting to free a non-heap object-Winline                    當內聯函數無法被內聯時給出警告-Winvalid-memory-model      Warn when an atomic memory model parameter isknown to be outside the valid range.-Wlarger-than-              此開關缺少可用文檔-Wlarger-than=<N>           當目標文件大于 N 字節時給出警告-Woverflow                  算術表示式溢出時給出警告-Wpacked                    當 packed屬性對結構布局不起作用時給出警告-Wpadded                    當需要填補才能對齊結構成員時給出警告-Wshadow                    當一個局部變量掩蓋了另一個局部變量時給出警告-Wstack-protector           當因為某種原因堆棧保護失效時給出警告-Wstack-usage=              Warn if stack usage might be larger thanspecified amount-Wstrict-aliasing           當代碼可能破壞強重疊規則時給出警告-Wstrict-overflow           禁用假定有符號數溢出行為未被定義的優化-Wsuggest-attribute=const   Warn about functions which might be candidatesfor __attribute__((const))-Wsuggest-attribute=noreturn 當函數可能是 __attribute__((noreturn))的備選時給出警告-Wsuggest-attribute=pure    Warn about functions which might be candidatesfor __attribute__((pure))-Wtrampolines               Warn whenever a trampoline is generated-Wtype-limits               當由于數據類型范圍限制比較結果永遠為真或假時給出警告-Wunsafe-loop-optimizations 當循環因為不平凡的假定而不能被優化時給出警告-Wunused-but-set-parameter  Warn when a function parameter is only set,otherwise unused-Wunused-but-set-variable   Warn when a variable is only set, otherwise unused-Wunused-function           有未使用的函數時警告-Wunused-parameter          發現未使用的函數指針時給出警告-Wunused-value              當一個表達式的值未被使用時給出警告-Wunused-variable           有未使用的變量時警告-Wvector-operation-performance Warn when a vector operation is compiledoutside the SIMD下列選項控制優化:-O<N>                       將優化等級設為 N-Ofast                      為速度優化,不嚴格遵守標準-Og                         Optimize for debugging experience rather thanspeed or size-Os                         為最小空間而不是最大速度優化-faggressive-loop-optimizations Aggressively optimize loops using languageconstraints-falign-functions           對齊函數入口-falign-jumps               對齊只能為跳轉所到達的標號-falign-labels              對齊所有的標號-falign-loops               對齊循環入口-fasynchronous-unwind-tables 生成精確到每條指令邊界的堆棧展開表-fbranch-count-reg          將加/減法、比較、跳轉指令序列替換為根據計數寄存器跳轉指令-fbranch-probabilities      為分支概率使用取樣信息-fbranch-target-load-optimize 在開始/結末線程前進行分支目標載入優化-fbranch-target-load-optimize2 在開始/結末線程后進行分支目標載入優化-fbtr-bb-exclusive          限制目標載入融合不重用任何基本塊中的寄存器-fcaller-saves              函數調用前后保存/恢復寄存器值-fcombine-stack-adjustments Looks for opportunities to reduce stackadjustments and stack references.-fcommon                    不將未初始化的全局數據放在公共節中-fcompare-elim              Perform comparison elimination after registerallocation has finished-fconserve-stack            不進行可能導致堆棧使用明顯增長的優化-fcprop-registers           進行一趟寄存器副本傳遞優化-fcrossjumping              進行跨跳轉優化-fcse-follow-jumps          進行 CSE 時,跟隨跳轉至目標-fcx-fortran-rules          復數乘除遵循 Fortran 規則-fcx-limited-range          當進行復數除法時省略縮減范圍的步驟-fdata-sections             將每個數據項分別放在它們各自的節中-fdce                       使用 RTL 死代碼清除-fdefer-pop                 延遲將函數實參彈棧-fdelayed-branch            嘗試填充分支指令的延遲槽-fdelete-null-pointer-checks 刪除無用的空指針檢查-fdevirtualize              Try to convert virtual calls to direct ones.-fdse                       使用 RTL 死存儲清除-fearly-inlining            進行早內聯-fexceptions                啟用異常處理-fexpensive-optimizations   進行一些細微的、代價高昂的優化-ffinite-math-only          假定結果不會是 NaN 或無窮大浮點數-ffloat-store               不將單精度和雙精度浮點數分配到擴展精度的寄存器中-fforward-propagate         進行 RTL 上的前向傳遞-fgcse                      進行全局公共子表達式消除-fgcse-after-reload         Perform global common subexpression eliminationafter register allocation has finished-fgcse-las                  Perform redundant load after store elimination inglobal common subexpression elimination-fgcse-lm                   在全局公共子表達式消除中進行增強的讀轉移優化-fgcse-sm                   在全局公共子表達式消除后進行存儲轉移-fgraphite-identity         啟用 Graphite 身份轉換-fguess-branch-probability  啟用分支概率猜測-fhoist-adjacent-loads      Enable hoisting adjacent loads to encouragegenerating conditional move instructions-fif-conversion             將條件跳轉替換為沒有跳轉的等值表示-fif-conversion2            將條件跳轉替換為條件執行-finline                    Enable inlining of function declared "inline",disabling disables all inlining-finline-atomics            Inline __atomic operations when a lock freeinstruction sequence is available.-finline-functions-called-once Integrate functions only required by theirsingle caller-finline-small-functions    Integrate functions into their callers when codesize is known not to grow-fipa-cp                    進行進程間的復寫傳遞-fipa-cp-clone              進行復制以使跨進程常量傳遞更有效-fipa-profile               Perform interprocedural profile propagation-fipa-pta                   進行進程間的指向分析-fipa-pure-const            發現純函數和常函數-fipa-reference             發現只讀和不可尋址靜態變量-fipa-sra                   為聚合類型進行跨進程標量替換-fira-hoist-pressure        Use IRA based register pressure calculation inRTL hoist optimizations.-fivopts                    在樹上優化歸納變量-fjump-tables               為足夠大的 switch 語句使用跳轉表-floop-block                啟用循環分塊轉換-floop-interchange          啟用循環交換轉換-floop-nest-optimize        Enable the ISL based loop nest optimizer-floop-parallelize-all      將所有循環標記為并行-floop-strip-mine           啟用循環條帶開采轉換-fmath-errno                執行內建數學函數后設置 errno-fmerge-all-constants       試圖合并相同的常量和常變量-fmerge-constants           試圖合并不同編譯單元中的相同常量-fmodulo-sched              在首趟調度前進行基于 SMS 的模調度-fmove-loop-invariants      將每次循環中不變的計算外提-fnon-call-exceptions       支持同步非調用異常-fomit-frame-pointer        盡可能不生成棧幀-fopt-info                  Enable all optimization info dumps on stderr-foptimize-register-move    進行全寄存器傳送優化-foptimize-sibling-calls    優化同級遞歸和尾遞歸-foptimize-strlen           Enable string length optimizations on trees-fpack-struct               將結構成員不帶間隔地緊實存放-fpack-struct=<N>           設定結構成員最大對齊邊界的初始值-fpeel-loops                進行循環剝離-fpeephole                  啟用機器相關的窺孔優化-fpeephole2                 在 sched2 前進行一趟 RTL 窺孔優化-fpredictive-commoning      啟用預測公因子優化。-fprefetch-loop-arrays      如果可用,為循環中的數組生成預取指令-freg-struct-return         在寄存器中返回小聚合-fregmove                   啟用寄存器傳送優化-frename-registers          進行寄存器重命名優化-freorder-blocks            基本塊重新排序以改善代碼布局-freorder-blocks-and-partition 對基本塊重新排序并劃分為熱區和冷區-freorder-functions         函數重新排序以改善代碼布局-frerun-cse-after-loop      在循環優化結束后增加一趟公共子表達式消除-freschedule-modulo-scheduled-loops 啟用/禁用已經通過模調度的循環中的傳統調度-frounding-math             禁用假定默認浮點舍入行為的優化-fsched-critical-path-heuristic 為調度器啟用關鍵路徑啟發式發現-fsched-dep-count-heuristic 為調度器啟用依賴計數啟發式發現-fsched-group-heuristic     在調度器中啟用組啟發-fsched-interblock          啟用基本塊間的調度-fsched-last-insn-heuristic 為調度器啟用最近指令啟發式發現-fsched-pressure            啟用對寄存器壓力敏感的指令調度-fsched-rank-heuristic      在調度器中啟用秩啟發-fsched-spec                允許非載入的投機移動-fsched-spec-insn-heuristic 為調度器啟用投機指令啟發式發現-fsched-spec-load           允許一些載入的投機移動-fsched-spec-load-dangerous 允許更多載入的投機移動-fsched-stalled-insns       允許對隊列中的指令進行早調度-fsched-stalled-insns-dep   設置排隊中指令的進行早調度的依賴距離檢查-fsched2-use-superblocks    在重載后調度中使用跨基本塊調度-fschedule-insns            分配寄存器前重新調度指令-fschedule-insns2           分配寄存器后重新調度指令-fsection-anchors           從共享的錨點訪問在同樣的節中的數據-fsel-sched-pipelining      在選擇性調度中對內層循環進行軟件流水化-fsel-sched-pipelining-outer-loops 在選擇性調度中對外層循環進行軟件流水化-fsel-sched-reschedule-pipelined 重新調度沒有被流水線化的流水線區域-fselective-scheduling      用選擇性調度算法調度指令-fselective-scheduling2     在重加載后使用選擇性調度-fset-stack-executable      為嵌套函數設定可執行堆棧權限。-fshrink-wrap               Emit function prologues only before parts of thefunction that need it, rather than at the top ofthe function.-fsignaling-nans            禁用為 IEEE NaN 可見的優化-fsigned-zeros              禁用忽略 IEEE 中零的符號的浮點優化-fsingle-precision-constant 將浮點常量轉換為單精度常量-fsplit-ivs-in-unroller     展開循環時分離歸納變量的生存期-fsplit-wide-types          將寬類型分割到獨立的寄存器中-fstrict-aliasing           假定應用強重疊規則-fthread-jumps              進行跳轉線程優化-ftoplevel-reorder          重新排序文件作用域的函數、變量和匯編-ftrapping-math             假定浮點運算可能引發陷阱-ftrapv                     加法、減法或乘法溢出時激活陷阱-ftree-bit-ccp              Enable SSA-BIT-CCP optimization on trees-ftree-builtin-call-dce     為內建函數啟用有條件的死代碼消除優化-ftree-ccp                  啟用樹上的 SSA-CCP 優化-ftree-ch                   啟用樹上的循環不變量轉移-ftree-coalesce-inlined-vars Enable coalescing of copy-related user variablesthat are inlined-ftree-coalesce-vars        Enable coalescing of all copy-related uservariables-ftree-copy-prop            在樹級別進行復寫傳遞-ftree-copyrename           將 SSA臨時變量重命名為更易理解的名稱-ftree-cselim               將條件存儲轉換為非條件存儲-ftree-dce                  啟用樹上的 SSA 死代碼消除優化-ftree-dominator-opts       啟用主導優化-ftree-dse                  刪除死存儲-ftree-forwprop             在樹級別進行前向復寫傳遞-ftree-fre                  啟用樹上的完全冗余消除(FRE)-ftree-loop-distribute-patterns Enable loop distribution for patternstransformed into a library call-ftree-loop-distribution    在樹上進行循環分配-ftree-loop-if-convert      Convert conditional jumps in innermost loops tobranchless equivalents-ftree-loop-if-convert-stores 將包含內存寫入的條件跳轉轉換為不帶分支的等效形式-ftree-loop-im              啟用樹上的循環不變量轉移-ftree-loop-ivcanon         在循環中生成正規的歸納變量-ftree-loop-optimize        在樹級別進行循環優化-ftree-lrs                  在 SSA->normal 過程中分離活動范圍-ftree-partial-pre          In SSA-PRE optimization on trees, enable partial-partial redundancy elimination-ftree-phiprop              為條件指針外提內存讀取操作。-ftree-pre                  啟用樹上的 SSA-PRE 優化-ftree-pta                  在樹上進行函數內的指向分析。-ftree-reassoc              在樹級別進行重結合-ftree-scev-cprop           為標量演化信息進行復寫傳遞。-ftree-sink                 啟用樹上的 SSA 代碼下沉優化-ftree-slp-vectorize        在樹上進行基本塊向量化(SLP)-ftree-slsr                 Perform straight-line strength reduction-ftree-sra                  為聚合類型進行標量替換-ftree-switch-conversion    轉換開關初始化-ftree-tail-merge           Enable tail merging on trees-ftree-ter                  在 SSA->normal 過程中替換臨時表達式-ftree-vect-loop-version    在樹上進行循環向量化時啟用多版本循環-ftree-vectorize            在樹上進行循環向量化-ftree-vrp                  進行樹上的值域傳遞-funit-at-a-time            一次編譯一整個編譯單元-funroll-all-loops          展開所有循環-funroll-loops              展開所有迭代次數已知的循環-funsafe-loop-optimizations 允許假定循環以“正常”方式動作的循環優化-funsafe-math-optimizations 允許可能違反 IEEE 或 ISO 標準的優化-funswitch-loops            外提循環內的測試語句-funwind-tables             僅為異常處理生成堆棧展開表-fvar-tracking              進行變量跟蹤-fvar-tracking-assignments  評注賦值以進行變量跟蹤-fvar-tracking-assignments-toggle 切換 -fvar-tracking-assignments-fvar-tracking-uninit       進行變量追蹤并且標記未被初始化的變量-fvariable-expansion-in-unroller 展開循環時也展開變量-fvect-cost-model           啟用向量化開銷模型-fvpt                       在優化中使用表達式值樣本提供的信息-fweb                       建立關系網并且分離對同一變量的無關應用-fwhole-program             進行全程序優化-fwrapv                     假定有符號運算溢出時回繞下列選項與特定目標機相關:-m128bit-long-double        sizeof(long double) 等于 16-m32                        生成 32 位 i386 代碼-m3dnow                     支持 3DNow! 內建函數-m3dnowa                    支持擴展 3DNow! 內建函數-m64                        生成 64 位 x86-64 代碼-m80387                     使用硬件浮點單元-m8bit-idiv                 將 32/64位整數除法擴展為帶運行時檢查的 8位無符號整數除法-m96bit-long-double         sizeof(long double) 等于 12-mabi=                      生成遵循給定 ABI 的代碼-mabm                       支持生成高級位操作(ABM)指令。-maccumulate-outgoing-args  在函數序言中為輸出參數預留空間-maddress-mode=             Use given address mode-madx                       Support flag-preserving add-carry instructions-maes                       支持 AES 內建函數及代碼生成-malign-double              一些雙精度浮點數在雙字邊界上對齊-malign-functions=          函數入口對齊在 2 的此次方上-malign-jumps=              跳轉目標對齊在 2 的此次方上-malign-loops=              循環代碼對齊到 2 的此次方上-malign-stringops           對齊字符串操作的目標-march=                     為給定的 CPU 生成代碼-masm=                      使用給定的匯編風格-mavx                       支持MMX、SSE、SSE2、SSE3、SSSE3、SSE4.1、SSE4.2和 AVX 內建函數及代碼生成-mavx2                      Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1,SSE4.2, AVX and AVX2 built-in functions and codegeneration-mavx256-split-unaligned-load Split 32-byte AVX unaligned load-mavx256-split-unaligned-store Split 32-byte AVX unaligned store-mbmi                       支持 BMI 內建函數及代碼生成-mbmi2                      Support BMI2 built-in functions and codegeneration-mbranch-cost=              指定分支的代價(1-5,任意單位)-mcld                       在函數序言中生成 cld 指令-mcmodel=                   使用給定的 x86-64 代碼模式-mconsole                   創建命令行程序-mcpu=                      此開關缺少可用文檔-mcrc32                     支持生成 crc32 指令。-mcx16                      支持生成 cmpxchg16b 指令。-mdispatch-scheduler        Do dispatch scheduling if processor is bdver1 orbdver2 or bdver3 and Haifa scheduling is selected.-mdll                       生成動態鏈接庫的代碼-mf16c                      支持 F16C 內建函數及代碼生成-mfancy-math-387            為 FPU 生成 sin、cos 和 sqrt 指令-mfentry                    Emit profiling counter call at function entrybefore prologue.-mfma                       支持MMX、SSE、SSE2、SSE3、SSSE3、SSE4.1、SSE4.2、AVX和 FMA 內建函數及代碼生成-mfma4                      支持 FMA4 內建函數及代碼生成-mforce-drap                總是使用動態對齊參數指針(DRAP)來重新對齊堆棧-mfp-ret-in-387             在 FPU 寄存器中存放函數返回值-mfpmath=                   為指定的指令集生成浮點數學代碼-mfsgsbase                  支持 FSGSBASE 內建函數及代碼生成-mfused-madd                此開關缺少可用文檔-mfxsr                      Support FXSAVE and FXRSTOR instructions-mhard-float                使用硬件浮點單元-mhle                       Support Hardware Lock Elision prefixes-mieee-fp                   浮點數間的比較嚴格遵循 IEEE 標準-mincoming-stack-boundary=  假定棧對齊到 2 的此次方上-minline-all-stringops      內聯所有已知的字符串操作-minline-stringops-dynamically 內聯 memset/memcpy字符串操作,但僅為較小的塊使用內聯版本-mintel-syntax              此開關缺少可用文檔-mlarge-data-threshold=     在 x86-64中等模式下大于指定閾值的數據將被存放在.ldata 節中-mlong-double-64            使用 64 位 long double-mlong-double-80            Use 80-bit long double-mlwp                       支持 LWP 內建函數及代碼生成-mlzcnt                     Support LZCNT built-in function and codegeneration-mmmx                       支持 MMX 內建函數-mmovbe                     支持生成 movbe 指令。-mms-bitfields              使用本地 (MS) 位段存儲方式-mno-align-stringops        此開關缺少可用文檔-mno-fancy-math-387         此開關缺少可用文檔-mno-push-args              此開關缺少可用文檔-mno-red-zone               此開關缺少可用文檔-mno-sse4                   不支持 SSE4.1 和 SSE4.2內建函數及代碼生成-mnop-fun-dllimport         忽略函數的 dllimport 屬性-momit-leaf-frame-pointer   為葉函數(不調用其他函數的函數)忽略框架指針-mpc32                      Set 80387 floating-point precision to 32-bit-mpc64                      Set 80387 floating-point precision to 64-bit-mpc80                      Set 80387 floating-point precision to 80-bit-mpclmul                    支持 PCLMUL 內建函數及代碼生成-mpe-aligned-commons        使用 PE 格式的 GNU 擴展來對齊 common數據-mpopcnt                    支持生成 popcnt 指令。-mprefer-avx128             自動向量化時使用 128 位 AVX指令而不是 256 位 AVX 指令-mpreferred-stack-boundary= 試圖讓棧保持對齊到 2 的此次方上-mprfchw                    Support PREFETCHW instruction-mpush-args                 使用 push 指令保存輸出參數-mrdrnd                     支持 RDRND 內建函數及代碼生成-mrdseed                    Support RDSEED instruction-mrecip                     生成倒數指令而不是 divss 和 sqrtss。-mrecip=                    Control generation of reciprocal estimates.-mred-zone                  在 x86-64 代碼中使用紅區-mregparm=                  用以傳遞整數參數的寄存器個數-mrtd                       更改調用約定-mrtm                       Support RTM built-in functions and code generation-msahf                      支持在 x86-64 模式下生成 sahf 指令。-msoft-float                不使用硬件浮點單元-msse                       支持 MMX 和 SSE 內建函數及代碼生成-msse2                      支持 MMX、SSE 和 SSE2內建函數及代碼生成-msse2avx                   支持帶 VEX 前綴的 SSE 指令-msse3                      支持 MMX、SSE、SSE2 和 SSE3內建函數及代碼生成-msse4                      支持 MMX、SSE、SSE2、SSE3、SSSE3、SSE4.1和 SSE4.2 內建函數及代碼生成-msse4.1                    支持 MMX、SSE、SSE2、SSE3、SSSE3 和 SSE4.1內建函數及代碼生成-msse4.2                    支持 MMX、SSE、SSE2、SSE3、SSSE3、SSE4.1和 SSE4.2 內建函數及代碼生成-msse4a                     支持 MMX、SSE、SSE2、SSE3 和 SSE4A內建函數及代碼生成-msse5                      此開關缺少可用文檔-msseregparm                在 SF 和 DF 模式下使用 SSE寄存器調用約定-mssse3                     支持 MMX、SSE、SSE2、SSE3 和 SSSE3內建函數及代碼生成-mstack-arg-probe           啟用堆棧探測-mstackrealign              在前言中重新對齊堆棧-mstringop-strategy=        選擇生成字符串操作的策略-mtbm                       支持 TBM 內建函數及代碼生成-mthreads                   使用 Mingw 特定的線程支持-mtls-dialect=              使用給定的線程局部存儲模式-mtls-direct-seg-refs       當訪問線程局部數據時直接引用 %gs-mtune=                     為指定的 CPU 優化代碼-muse-libstdc-wrappers      生成依賴 Cygwin DLL包裝的代碼以支持對 C++ 運算符 new/delete 的替換-mveclibabi=                指定要使用的向量庫 ABI-mvect8-ret-in-mem          將 8 字節向量在內存中返回-mvzeroupper                Generate vzeroupper instruction before a transferof control flow out of the function.-mwin32                     設定 Windows 定義-mwindows                   創建圖形界面程序-mx32                       Generate 32bit x86-64 code-mxop                       支持 XOP 內建函數及代碼生成-mxsave                     Support XSAVE and XRSTOR instructions-mxsaveopt                  Support XSAVEOPT instructionKnown assembler dialects (for use with the -masm-dialect= option):att intelKnown ABIs (for use with the -mabi= option):ms sysvKnown code models (for use with the -mcmodel= option):32 kernel large medium smallValid arguments to -mfpmath=:387 387+sse 387,sse both sse sse+387 sse,387Known vectorization library ABIs (for use with the -mveclibabi= option):acml svmlKnown address mode (for use with the -maddress-mode= option):long shortValid arguments to -mstringop-strategy=:byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loopKnown TLS dialects (for use with the -mtls-dialect= option):gnu gnu2下列選項與具體語言無關:--debug                     此開關缺少可用文檔--dumpbase                  此開關缺少可用文檔--dumpdir                   此開關缺少可用文檔--help                      顯示此信息--help=<類型>             顯示一或多項特定類型選項的描述。類型可能是optimizers、target、warnings、undocumented 或params--optimize                  此開關缺少可用文檔--param <參數>=<值>      將參數參數設為給定值。下面給出所有參數的列表--param=                    此開關缺少可用文檔--pedantic-errors           此開關缺少可用文檔--profile                   此開關缺少可用文檔--target-help               --help=target 的別名--version                   此開關缺少可用文檔-Werror=                    將指定的警告當作錯誤-Wfatal-errors              發現第一個錯誤時即退出-Wframe-larger-than=<N>     當一個函數的堆棧框架需要多于 N字節的內存時給出警告-Wmissing-noreturn          此開關缺少可用文檔-Wunreachable-code          不起作用。為向前兼容保留的選項。-aux-info <文件>          將聲明信息寫入文件-aux-info=                  此開關缺少可用文檔-auxbase                    此開關缺少可用文檔-auxbase-strip              此開關缺少可用文檔-dumpbase <文件>          設定內存轉儲使用的文件基本名-dumpdir <目錄>           設定內存轉儲使用的目錄名-fPIC                       盡可能生成與位置無關的代碼(大模式)-fPIE                       為可執行文件盡可能生成與位置無關的代碼(大模式)-fabi-version=              此開關缺少可用文檔-falign-functions=          此開關缺少可用文檔-falign-jumps=              此開關缺少可用文檔-falign-labels=             此開關缺少可用文檔-falign-loops=              此開關缺少可用文檔-fargument-alias            不起作用。為向前兼容保留的選項。-fargument-noalias          不起作用。為向前兼容保留的選項。-fargument-noalias-anything 不起作用。為向前兼容保留的選項。-fargument-noalias-global   不起作用。為向前兼容保留的選項。-fassociative-math          Allow optimization for floating-point arithmeticwhich may change the result of the operation dueto rounding.-fauto-inc-dec              生成 auto-inc/dec指令-fbounds-check              生成檢查數組訪問是否越界的代碼-fcall-saved-<寄存器>    認為寄存器在函數調用后值不變-fcall-used-<寄存器>     認為寄存器的值將被函數調用所改變-fcheck-data-deps           比較幾個數據依賴分析的結果。-fcompare-debug-second      只為 -fcompare-debug 運行第二遍編譯-fcompare-debug[=<選項>]  分別在帶與不帶“選項”,例如-gtoggle,的情況下編譯,然后比較最后的指令輸出-fcse-skip-blocks           不起作用。為向前兼容保留的選項。-fdbg-cnt-list              列出所有可用的調試計數器及其極限和計數。-fdbg-cnt=<計數器>:<極限>[,<計數器>:<極限>,...] 設定調試計數器極限。-fdebug-prefix-map=         在調試信息中將一個目錄名映射到另一個-fdebug-types-section       Output .debug_types section when using DWARF v4debuginfo.-fdelete-dead-exceptions    Delete dead instructions that may throw exceptions-fdiagnostics-show-caret    Show the source line with a caret indicating thecolumn-fdiagnostics-show-location=[once|every-line] 指定在自動換行的診斷信息開始給出源位置的頻率-fdiagnostics-show-option   在診斷信息后輸出控制它們的命令行選項-fdisable-                  -fdisable-[tree|rtl|ipa]-<pass>=range1+range2disables an optimization pass-fdump-<類型>             將一些編譯器內部信息轉儲到一個文件里-fdump-final-insns=文件名 在翻譯完畢后將指令輸出到文件中-fdump-go-spec=filename     Write all declarations to file as Go code-fdump-noaddr               在調試轉儲中不輸出地址-fdump-passes               Dump optimization passes-fdump-unnumbered           在調試轉儲中不輸出指令數、行號標記和地址-fdump-unnumbered-links     在調試轉儲中不輸出前一條和后一條指令號碼-fdwarf2-cfi-asm            用 GAS 匯編指示來啟用 CFI 表-feliminate-dwarf2-dups     進行 DWARF2 冗余消除-feliminate-unused-debug-symbols 在調試信息中進行無用類型消除-feliminate-unused-debug-types 在調試信息中進行無用類型消除-femit-class-debug-always   保留 C++ 類調試信息。-fenable-                   -fenable-[tree|rtl|ipa]-<pass>=range1+range2enables an optimization pass-fexcess-precision=[fast|standard] 指定如何處理有額外精度的浮點數-ffast-math                 此開關缺少可用文檔-ffat-lto-objects           Output lto objects containing both theintermediate language and binary output.-ffixed-<寄存器>         認為寄存器對編譯器而言不可用-fforce-addr                不起作用。為向前兼容保留的選項。-ffp-contract=              -ffp-contract=[off|on|fast] Perform floating-point expression contraction.-ffunction-cse              允許將函數地址保存在寄存器中-ffunction-sections         將每個函數分別放在它們各自的節中-fgnu-tm                    Enable support for GNU transactional memory-fgraphite                  啟用 Graphite 表示的輸入輸出-fhelp                      此開關缺少可用文檔-fhelp=                     此開關缺少可用文檔-fident                     處理 #ident 指令-findirect-inlining         進行間接內聯-finhibit-size-directive    不生成 .size 偽指令-finline-limit-             此開關缺少可用文檔-finline-limit=<N>          將內聯函數的大小限制在 N 以內-finstrument-functions      在函數入口和出口加入取樣調用-finstrument-functions-exclude-file-list= -finstrument-functions-exclude-file-list=文件名,... 取樣時排除列出的文件中的函數-finstrument-functions-exclude-function-list= -finstrument-functions-exclude-function-list=函數名,... 取樣時排除列出的函數-fipa-matrix-reorg          不起作用。為向前兼容保留的選項。-fipa-struct-reorg          不起作用。為向前兼容保留的選項。-fira-algorithm=            -fira-algorithm=|CB|priority] 設置使用的 IRA算法-fira-loop-pressure         Use IRA based register pressure calculation inRTL loop optimizations.-fira-region=               -fira-region=[one|all|mixed] 設置 IRA 的區域-fira-share-save-slots      為保存不同的硬寄存器的共享槽。-fira-share-spill-slots     為溢出的偽寄存器共享堆棧槽。-fira-verbose=<N>           控制 IRA 診斷信息的級別。-fkeep-inline-functions     為完全內聯的函數生成代碼-fkeep-static-consts        保留未用到的靜態常量-fleading-underscore        給外部符號添加起始的下劃線-floop-flatten              不起作用。為向前兼容保留的選項。-floop-optimize             不起作用。為向前兼容保留的選項。-flto                       啟用鏈接時優化。-flto-compression-level=<N> 為 IL 使用 zlib 壓縮級別 N-flto-partition=1to1        Partition symbols and vars at linktime based onobject files they originate from-flto-partition=balanced    Partition functions and vars at linktime intoapproximately same sized buckets-flto-partition=max         Put every symbol into separate partition-flto-partition=none        Disable partioning and streaming-flto-report                報告各種鏈接時優化統計-flto=                      Link-time optimization with number of paralleljobs or jobserver.-fmax-errors=<n>            報告錯誤數量的上限值-fmem-report                報告永久性內存分配-fmem-report-wpa            Report on permanent memory allocation in WPA only-fmerge-debug-strings       試圖合并不同編譯單元中的相同調試字符串-fmessage-length=<N>        將診斷信息限制在每行 N 個字符。0取消自動換行-fmodulo-sched-allow-regmoves 進行基于 SMS且允許寄存器轉移的模調度-fopt-info[-<type>=filename] Dump compiler optimization details-fpartial-inlining          進行部分內聯-fpcc-struct-return         在內存而不是寄存器中返回小聚合-fpic                       盡可能生成與位置無關的代碼(小模式)-fpie                       為可執行文件盡可能生成與位置無關的代碼(小模式)-fplugin-arg-<插件>-<鍵>[=<值>] 為插件指定參數鍵=值-fplugin=                   指定要加載的插件-fpost-ipa-mem-report       在跨進程優化前報告內存分配-fpre-ipa-mem-report        在跨進程優化前報告內存分配-fprofile                   啟用基本程序取樣代碼-fprofile-arcs              插入基于弧的程序取樣代碼-fprofile-correction        啟用對流不一致取樣數據輸入的修正-fprofile-dir=              Set the top-level directory for storing theprofile data. The default is 'pwd'.-fprofile-generate          啟用一些公共選項來生成樣本文件,以便進行基于取樣的優化-fprofile-generate=         啟用生成取樣信息的公共選項以支持基于取樣反饋的優化,同時設置-fprofile-dir=-fprofile-report            Report on consistency of profile-fprofile-use               啟用一些公共選項以進行基于取樣的優化-fprofile-use=              啟用公共選項以進行基于取樣反饋的優化,同時設置-fprofile-dir=-fprofile-values            為取樣表達式的值插入相關代碼-frandom-seed               此開關缺少可用文檔-frandom-seed=<字符串>   使用字符串使編譯可以復現-freciprocal-math           與 -fassociative-math相同,作用于包含除法的表達式。-frecord-gcc-switches       在目標文件中記錄 gcc 命令行開關。-free                       Turn on Redundant Extensions Elimination pass.-frerun-loop-opt            不起作用。為向前兼容保留的選項。-fsanitize=address          Enable AddressSanitizer, a memory error detector-fsanitize=thread           Enable ThreadSanitizer, a data race detector-fsched-stalled-insns-dep=<N> 設置排隊中指令的進行早調度的依賴距離檢查-fsched-stalled-insns=<N>   指定能被早期調度的在排隊中的指令的最大數量-fsched-verbose=<N>         指定調度器的冗余級別-fsched2-use-traces         不起作用。為向前兼容保留的選項。-fsee                       不起作用。為向前兼容保留的選項。-fshow-column               診斷信息中給出行號。默認打開-fsplit-stack               Generate discontiguous stack frames-fstack-check               在程序中插入檢查棧溢出的代碼。與fstack-check=specific 相同-fstack-check=[no|generic|specific] 在程序中插入檢查棧溢出的代碼-fstack-limit               此開關缺少可用文檔-fstack-limit-symbol=<寄存器> 當堆棧越過寄存器時引發陷阱-fstack-limit-symbol=<符號> 當堆棧越過符號時引發陷阱-fstack-protector           使用 propolice 來保護堆棧-fstack-protector-all       為每個函數使用堆棧保護機制-fstack-reuse=              -fstack-reuse=[all|named_vars|none] Set stackreuse level for local variables.-fstack-usage               Output stack usage information on a per-functionbasis-fstrength-reduce           不起作用。為向前兼容保留的選項。-fstrict-overflow           將有符號數溢出的行為視為未定義的-fstrict-volatile-bitfields Force bitfield accesses to match their type width-fsync-libcalls             Implement __atomic operations via libcalls tolegacy __sync functions-fsyntax-only               檢查語法錯誤,然后停止-ftarget-help               此開關缺少可用文檔-ftest-coverage             生成“gcov”需要的數據文件-ftime-report               報告每趟匯編的耗時-ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] 設定默認的線程局部存儲代碼生成模式-ftracer                    通過尾復制進行超塊合成-ftree-loop-linear          Enable loop interchange transforms.  Same as-floop-interchange-ftree-parallelize-loops=   啟用循環的自動并行化-ftree-salias               不起作用。為向前兼容保留的選項。-ftree-store-ccp            不起作用。為向前兼容保留的選項。-ftree-store-copy-prop      不起作用。為向前兼容保留的選項。-ftree-vectorizer-verbose=<number> This switch is deprecated. Use -fopt-infoinstead.-fuse-ld=bfd                Use the bfd linker instead of the default linker-fuse-ld=gold               Use the gold linker instead of the default linker-fuse-linker-plugin         此開關缺少可用文檔-fverbose-asm               為匯編輸出添加額外注釋-fversion                   此開關缺少可用文檔-fvisibility=[default|internal|hidden|protected] 設置符號的默認可見性-fwritable-relocated-rdata  Put relocated read-only data into .data section.-fzee                       不起作用。為向前兼容保留的選項。-fzero-initialized-in-bss   將初始化為零的數據存放在 bss 節中-g                          生成默認格式的調試信息-gcoff                      生成 COFF 格式的調試信息-gdwarf-                    生成 DWARF v2(或更新)格式的調試信息-ggdb                       生成默認擴展格式的調試信息-gno-pubnames               Don't generate DWARF pubnames and pubtypessections.-gno-record-gcc-switches    Don't record gcc command line switches in DWARFDW_AT_producer.-gno-split-dwarf            Don't generate debug information in separate .dwofiles-gno-strict-dwarf           生成較所選版本更先進的 DWARF附加信息-gpubnames                  Generate DWARF pubnames and pubtypes sections.-grecord-gcc-switches       Record gcc command line switches in DWARFDW_AT_producer.-gsplit-dwarf               Generate debug information in separate .dwo files-gstabs                     生成 STABS 格式的調試信息-gstabs+                    生成擴展 STABS 格式的調試信息-gstrict-dwarf              不生成較所選版本更先進的 DWARF附加信息-gtoggle                    切換調試信息生成-gvms                       生成 VMS 格式的調試信息-gxcoff                     生成 XCOFF 格式的調試信息-gxcoff+                    生成 XCOFF 擴展格式的調試信息-imultiarch <dir>           Set <dir> to be the multiarch include subdirectory-iplugindir=<目錄>        將目錄設定為默認的插件子目錄-p                          啟用函數取樣-pedantic-errors            與 -pedantic 類似,但將它們視作錯誤-quiet                      不顯示編譯的函數或逝去的時間Usage: /usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/as [option...] [asmfile...]
Options:-a[sub-option...]	  turn on listingsSub-options [default hls]:c      omit false conditionalsd      omit debugging directivesg      include general infoh      include high-level sourcel      include assemblym      include macro expansionsn      omit forms processings      include symbols=FILE  list to FILE (must be last sub-option)--alternate             initially turn on alternate macro syntax--compress-debug-sectionscompress DWARF debug sections using zlib--nocompress-debug-sectionsdon't compress DWARF debug sections-D                      produce assembler debugging messages--debug-prefix-map OLD=NEWmap OLD to NEW in debug information--defsym SYM=VAL        define symbol SYM to given value-f                      skip whitespace and comment preprocessing-g --gen-debug          generate debugging information--gstabs                generate STABS debugging information--gstabs+               generate STABS debug info with GNU extensions--gdwarf-2              generate DWARF2 debugging information--gdwarf-sections       generate per-function section names for DWARF line information--hash-size=<value>     set the hash table size close to <value>--help                  show this message and exit--target-help           show target specific options-I DIR                  add DIR to search list for .include directives-J                      don't warn about signed overflow-K                      warn when differences altered for long displacements-L,--keep-locals        keep local symbols (e.g. starting with `L')-M,--mri                assemble in MRI compatibility mode--MD FILE               write dependency information in FILE (default none)-nocpp                  ignored-o OBJFILE              name the object-file output OBJFILE (default a.out)-R                      fold data section into text section--reduce-memory-overheads prefer smaller memory use at the cost of longerassembly times--statistics            print various measured statistics from execution--strip-local-absolute  strip local absolute symbols--traditional-format    Use same format as native assembler when possible--version               print assembler version number and exit-W  --no-warn           suppress warnings--warn                  don't suppress warnings--fatal-warnings        treat warnings as errors-w                      ignored-X                      ignored-Z                      generate object file even after errors--listing-lhs-width     set the width in words of the output data column ofthe listing--listing-lhs-width2    set the width in words of the continuation linesof the output data column; ignored if smaller thanthe width of the first line--listing-rhs-width     set the max width in characters of the lines fromthe source file--listing-cont-lines    set the maximum number of continuation lines usedfor the output data column of the listing@FILE                   read options from FILE-n                      Do not optimize code alignment-q                      quieten some warnings--32/--64/--x32         generate 32bit/64bit/x32 code--divide                ignored-march=CPU[,+EXTENSION...]generate code for CPU and EXTENSION, CPU is one of:generic32, generic64, i386, i486, i586, i686,pentium, pentiumpro, pentiumii, pentiumiii, pentium4,prescott, nocona, core, core2, corei7, l1om, k1om,k6, k6_2, athlon, opteron, k8, amdfam10, bdver1,bdver2, bdver3, bdver4, btver1, btver2EXTENSION is combination of:8087, 287, 387, no87, mmx, nommx, sse, sse2, sse3,ssse3, sse4.1, sse4.2, sse4, nosse, avx, avx2,avx512f, avx512cd, avx512er, avx512pf, noavx, vmx,vmfunc, smx, xsave, xsaveopt, aes, pclmul, fsgsbase,rdrnd, f16c, bmi2, fma, fma4, xop, lwp, movbe, cx16,ept, lzcnt, hle, rtm, invpcid, clflush, nop, syscall,rdtscp, 3dnow, 3dnowa, padlock, svme, sse4a, abm,bmi, tbm, adx, rdseed, prfchw, smap, mpx, sha,clflushopt, xsavec, xsaves, prefetchwt1-mtune=CPU              optimize for CPU, CPU is one of:generic32, generic64, i8086, i186, i286, i386, i486,i586, i686, pentium, pentiumpro, pentiumii,pentiumiii, pentium4, prescott, nocona, core, core2,corei7, l1om, k1om, k6, k6_2, athlon, opteron, k8,amdfam10, bdver1, bdver2, bdver3, bdver4, btver1,btver2-msse2avx               encode SSE instructions with VEX prefix-msse-check=[none|error|warning]check SSE instructions-moperand-check=[none|error|warning]check operand combinations for validity-mavxscalar=[128|256]   encode scalar AVX instructions with specific vectorlength-mevexlig=[128|256|512] encode scalar EVEX instructions with specific vectorlength-mevexwig=[0|1]         encode EVEX instructions with specific EVEX.W valuefor EVEX.W bit ignored instructions-mmnemonic=[att|intel]  use AT&T/Intel mnemonic-msyntax=[att|intel]    use AT&T/Intel syntax-mindex-reg             support pseudo index registers-mnaked-reg             don't require `%' prefix for registers-mold-gcc               support old (<= 2.8.1) versions of gcc-madd-bnd-prefix        add BND prefix for all valid branches-mbig-obj               generate big object filesReport bugs to <http://www.sourceware.org/bugzilla/>
Usage: collect2 [options]Wrap linker and generate constructor code if needed.Options:-debug          Enable debug output--help          Display this information-v, --version   Display this program's version numberOverview: http://gcc.gnu.org/onlinedocs/gccint/Collect2.html
Report bugs: <http://gcc.gnu.org/bugs.html>用法:/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld [選項] 文件...
選項:-a 關鍵字                Shared library control for HP/UX compatibility-A 架構, --architecture 架構設定 CPU 架構-b 目標, --format 目標  指定隨后的輸入文件的目標-c 文件, --mri-script 文件讀取 MRI 格式的鏈接腳本-d, -dc, -dp                強制公共符號必須定義-e 地址, --entry 地址   設定起始地址-E, --export-dynamic        導出所有動態符號--no-export-dynamic         Undo the effect of --export-dynamic-EB                         鏈接高位字節在前的目標文件-EL                         鏈接低位字節在前的目標文件-f 共享庫, --auxiliary 共享庫指定為某共享對象符號表的輔助過濾器-F 共享庫, --filter 共享庫指定為某共享對象符號表的過濾器-g                          忽略-G 大小, --gpsize 大小  小數據的大小(如果未給出大小,與 --shared 相同)-h 文件名, -soname 文件名設定共享庫的內部名稱-I 程序, --dynamic-linker 程序將“程序”設為要使用的動態鏈接器-l 庫名, --library 庫名 搜索庫“庫名”-L 目錄, --library-path 目錄將“目錄”添加到庫搜索路徑中--sysroot=<DIRECTORY>       Override the default sysroot location-m 仿真                   設定仿真-M, --print-map             在標準輸出上打印鏈接圖文件-n, --nmagic                不將數據對齊至頁邊界-N, --omagic                不將數據對齊至頁邊界,不將 text 節只讀--no-omagic                 將數據對齊至頁邊界,令 text 節只讀-o 文件, --output 文件  設定輸出文件名-O                          優化輸出文件-plugin PLUGIN              Load named plugin-plugin-opt ARG             Send arg to last-loaded plugin-flto                       Ignored for GCC LTO option compatibility-flto-partition=            Ignored for GCC LTO option compatibility-fuse-ld=                   Ignored for GCC linker option compatibility-Qy                         為 SVR4 兼容性所忽略-q, --emit-relocs           Generate relocations in final output-r, -i, --relocatable       生成可重新定位的輸出-R 文件, --just-symbols 文件僅鏈接符號 (如果是目標,與 --rpath 相同)-s, --strip-all             剔除所有符號信息-S, --strip-debug           剔除調試符號信息--strip-discarded           剔除被丟棄的節中的符號--no-strip-discarded        不剔除被丟棄的節中的符號-t, --trace                 跟蹤文件打開操作-T 文件, --script 文件  讀取鏈接腳本--default-script 文件, -dTRead default linker script-u 符號, --undefined 符號Start with undefined reference to SYMBOL--unique [=節]             不合并名為“節”的輸入節或孤立節-Ur                         生成全局構造/析構函數表-v, --version               顯示版本信息-V                          顯示版本和仿真信息-x, --discard-all           丟棄所有局部符號-X, --discard-locals        丟棄臨時局部符號(默認)--discard-none              不丟棄任何局部符號-y 符號, --trace-symbol 符號Trace mentions of SYMBOL-Y 路徑                   Default search path for Solaris compatibility-(, --start-group           開始一個組-), --end-group             結束一個組--accept-unknown-input-arch 接受無法決定其架構的輸入文件--no-accept-unknown-input-arch拒絕架構不明的輸入文件--as-needed                 Only set DT_NEEDED for following dynamic libs if used--no-as-needed              Always set DT_NEEDED for dynamic libraries mentioned onthe command line-assert 關鍵字           為 SunOS 兼容性所忽略-Bdynamic, -dy, -call_shared鏈接到共享庫-Bstatic, -dn, -non_shared, -static不鏈接到共享庫-Bsymbolic                  Bind global references locally-Bsymbolic-functions        Bind global function references locally--check-sections            Check section addresses for overlaps (default)--no-check-sections         Do not check section addresses for overlaps--copy-dt-needed-entries    Copy DT_NEEDED links mentioned inside DSOs that follow--no-copy-dt-needed-entries Do not copy DT_NEEDED links mentioned inside DSOs that follow--cref                      輸出交叉引用表--defsym 符號=表達式   定義一個符號--demangle [=風格]        解修飾符號名[使用“風格”]--embedded-relocs           Generate embedded relocs--fatal-warnings            將警告當作錯誤--no-fatal-warnings         Do not treat warnings as errors (default)-fini 符號                Call SYMBOL at unload-time--force-exe-suffix          強制為生成的文件添加 .exe 后綴--gc-sections               刪除未使用的節(在某些目標上)--no-gc-sections            不刪除未使用的節(默認)--print-gc-sections         List removed unused sections on stderr--no-print-gc-sections      Do not list removed unused sections--hash-size=<NUMBER>        初始的散列表大小設定接近“數”--help                      顯示選項幫助-init 符號                Call SYMBOL at load-time-Map 文件                 寫入一個鏈接圖文件--no-define-common          Do not define Common storage--no-demangle               Do not demangle symbol names--no-keep-memory            更多地使用磁盤 I/O 而不是內存--no-undefined              不允許在目標文件中存在無法解析的引用--allow-shlib-undefined     Allow unresolved references in shared libraries--no-allow-shlib-undefined  不允許在共享庫中存在無法解析的引用--allow-multiple-definition 允許多個定義--no-undefined-version      不允許未定義的版本--default-symver            生成默認的符號版本--default-imported-symver   為導入符號生成默認的符號版本--no-warn-mismatch          不為不匹配的輸入文件發出警告--no-warn-search-mismatch   Don't warn on finding an incompatible library--no-whole-archive          關閉 --whole-archive--noinhibit-exec            Create an output file even if errors occur-nostdlib                   Only use library directories specified onthe command line--oformat 目標            指定輸出文件的目標--print-output-format       Print default output format-qmagic                     為 Linux 兼容性所忽略--reduce-memory-overheads   Reduce memory overheads, possibly taking much longer--relax                     Reduce code size by using target specific optimizations--no-relax                  Do not use relaxation techniques to reduce code size--retain-symbols-file 文件只保留在“文件”中列出的符號-rpath 路徑               設定運行時共享庫的搜索路徑-rpath-link 路徑          設定鏈接時共享庫的搜索路徑-shared, -Bshareable        創建一個共享庫-pie, --pic-executable      生成一個位置無關的可執行文件--sort-common [=ascending|descending]Sort common symbols by alignment [in specified order]--sort-section 名稱|對齊Sort sections by name or maximum alignment--spare-dynamic-tags 計數 How many tags to reserve in .dynamic section--split-by-file [=大小]   Split output sections every SIZE octets--split-by-reloc [=計數]  Split output sections every COUNT relocs--stats                     打印內存使用統計--target-help               顯示目標相關的選項--task-link 符號          Do task level linking--traditional-format        Use same format as native linker--section-start 節=地址  設定有名節的地址-Tbss 地址                設定 .bss 節的地址-Tdata 地址               設定 .data 節的地址-Ttext 地址               設定 .text 節的地址-Ttext-segment 地址       Set address of text segment-Trodata-segment 地址     Set address of rodata segment-Tldata-segment 地址      Set address of ldata segment--unresolved-symbols=<method>How to handle unresolved symbols.  <method> is:ignore-all, report-all, ignore-in-object-files,ignore-in-shared-libs--verbose [=NUMBER]         鏈接過程中輸出大量相關信息--version-script 文件     讀取版本信息腳本--version-exports-section 符號Take export symbols list from .exports, usingSYMBOL as the version.--dynamic-list-data         Add data symbols to dynamic list--dynamic-list-cpp-new      Use C++ operator new/delete dynamic list--dynamic-list-cpp-typeinfo Use C++ typeinfo dynamic list--dynamic-list 文件       Read dynamic list--warn-common               為重復的公共符號給出警告--warn-constructors         Warn if global constructors/destructors are seen--warn-multiple-gp          Warn if the multiple GP values are used--warn-once                 為每一個未定義的符號只警告一次--warn-section-align        Warn if start of section changes due to alignment--warn-shared-textrel       Warn if shared object has DT_TEXTREL--warn-alternate-em         Warn if an object has alternate ELF machine code--warn-unresolved-symbols   將不能解析的符號視作警告--error-unresolved-symbols  將不能解析的符號視作錯誤--whole-archive             Include all objects from following archives--wrap 符號               Use wrapper functions for SYMBOL--ignore-unresolved-symbol 符號Unresolved SYMBOL will not cause an error or warning@FILE                       Read options from FILE
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld:支持的目標: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld:支持的仿真:i386pe
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld:仿真特定選項:
i386pe: --base_file <基址文件>             為可重定位的 DLL 生成一個基址文件--dll                              設定 DLL 的默認映象基地址--file-alignment <大小>            設定文件對齊邊界--heap <大小>                      設定堆的初始大小--image-base <地址>                設定可執行文件的起始地址--major-image-version <數>         設定可執行文件的版本號--major-os-version <數>            設定對操作系統版本的最低要求--major-subsystem-version <數>     設定對操作系統子系統版本的最低要求--minor-image-version <數>         設定可執行文件的修訂版本號--minor-os-version <數>            設定對操作系統修訂版本的最低要求--minor-subsystem-version <數>     設定對操作系統子系統修訂版本的最低要求--section-alignment <大小>         設定節的對齊邊界--stack <大小>                     設定初始棧的大小--subsystem <名>[:<版本>]          設定需要的操作系統子系統[和版本號]--support-old-code                 支持與舊式代碼的交互工作--[no-]leading-underscore          Set explicit symbol underscore prefix mode--thumb-entry=<symbol>             Set the entry point to be Thumb <symbol>--insert-timestamp                 Use a real timestamp rather than zero.This makes binaries non-deterministic--add-stdcall-alias                導出帶與不帶 @nn 的符號--disable-stdcall-fixup            不將 _sym 鏈接至 _sym@nn--enable-stdcall-fixup             將 _sym 鏈接至 _sym@nn 而不給出警告--exclude-symbols 符號,符號,...    將一些符號排除在自動導入以外--exclude-all-symbols              Exclude all symbols from automatic export--exclude-libs 庫,庫,...           將一些庫排除在自動導入以外--exclude-modules-for-implib mod,mod,...Exclude objects, archive members from autoexport, place into import library instead.--export-all-symbols               自動將所有全局量導出至 DLL--kill-at                          從導出符號中移去 @nn--out-implib <文件>                生成導入庫--output-def <文件>                為建立的 DLL 生成一個 .DEF 文件--warn-duplicate-exports           Warn about duplicate exports--compat-implib                    生成后向兼容的導入庫;同時生成 __imp_<符號>。--enable-auto-image-base[=<address>] Automatically choose image base for DLLs(optionally starting with address) unlessspecifically set with --image-base--disable-auto-image-base          不自動選擇映象基地址。(默認)--dll-search-prefix=<字符串>       動態鏈接至 DLL 而缺少導入庫時,使用<字符串><基本名>.dll 而不是 lib<基本名>.dll--enable-auto-import               Do sophisticated linking of _sym to__imp_sym for DATA references--disable-auto-import              不為 DLL 自動導入 DATA 項--enable-runtime-pseudo-reloc      Work around auto-import limitations byadding pseudo-relocations resolved atruntime.--disable-runtime-pseudo-reloc     Do not add runtime pseudo-relocations forauto-imported DATA.--enable-extra-pe-debug            當生成或鏈接至 DLL 時(尤其當自動導入時)啟用詳細的調試輸出--large-address-aware              可執行文件支持大于 2 GB 的虛擬內存地址--disable-large-address-aware      Executable does not support virtualaddresses greater than 2 gigabytes--enable-long-section-names        Use long COFF section names even inexecutable image files--disable-long-section-names       Never use long COFF section names, evenin object files--dynamicbase			 Image base address may be relocated usingaddress space layout randomization (ASLR)--forceinteg		 Code integrity checks are enforced--nxcompat		 Image is compatible with data execution prevention--no-isolation		 Image understands isolation but do not isolate the image--no-seh			 Image does not use SEH. No SE handler maybe called in this image--no-bind			 Do not bind this image--wdmdriver		 Driver uses the WDM model--tsaware                  Image is Terminal Server aware向 <http://www.sourceware.org/bugzilla/> 報告程序缺陷For bug reporting instructions, please see:
<http://gcc.gnu.org/bugs.html>
轉載自:https://blog.csdn.net/earbao/article/details/53153853
                            
                        
                        
                        轉載自:https://blog.csdn.net/earbao/article/details/53153853
總結
以上是生活随笔為你收集整理的gcc的中文版使用说明和选项的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 支付宝退款申请PHP,使用:4、退款查询
- 下一篇: react-router v6替换his
