本文记录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
原文链接: https://www.cnblogs.com/tiny1987/p/12965871.html
欢迎关注
微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍;
也有高质量的技术群,里面有嵌入式、搜广推等BAT大佬
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/350929
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!