対応するオプション

あるコンパイラーから別のコンパイラーへアプリケーションを移植する場合の課題の 1 つは、アプリケーションのビルドに使用するコンパイラー・オプションがサポートされているかどうかを確認することです。次の表は、インテル(R) C++ コンパイラーと gcc の両方のコンパイラーでサポートされているコンパイラー・オプションのリストです。いずれかのコンパイラーに固有のオプションはリストには含まれておりません。

-A
-ansi
-B
-C
-c
-D
-dD
-dM
-dN
-E
-fargument-noalias
-fargument-noalias-global
-fdata-sections
-ffunction-sections
-fmudflap
-f[no-]builtin
-f[no-]common
-f[no-]for-scope
-f[no-]gnu-keywords
-f[no-]implicit-inline-templates
-f[no-]implicit-templates
-f[no-]inline
-f[no-]inline-functions
-f[no-]math-errno
-f[no-]operator-names
-f[no-]unsigned-bitfields
-fpack-struct
-fpermissive
-fPIC
-fpic
-freg-struct-return
-fshort-enums
-fsyntax-only
-ftemplate-depth
-ftls-model=global-dynamic
-ftls-model=initial-exec
-ftls-model=local-dynamic
-ftls-model=local-exec
-funroll-loops
-funsigned-char
-fverbose-asm
-fvisibility=default
-fvisibility=hidden
-fvisibility=internal
-fvisibility=protected
-H
-help
-I
-idirafter
-imacros
-iprefix
-iwithprefix
-iwithprefixbefore
-l
-L
-M
-malign-double
-march
-mcpu
-MD
-MF
-MG
-MM
-MMD
-m[no-]ieee-fp
-MP
-mp
-MQ
-msse
-msse2
-msse3
-MT
-mtune
-nodefaultlibs
-nostartfiles
-nostdinc
-nostdinc++
-nostdlib
-o
-O
-O0
-O1
-O2
-O3 (比較を参照)
-Os
-p
-P
-S
-shared
-static
-std
-trigraphs
-U
-u
-v
-V
-w
-Wall
-Werror
-Winline
-W[no-]comment
-W[no-]comments
-W[no-]deprecated
-Wno-invalid-offsetof
-W[no-]main
-W[no-]missing-declarations
-W[no-]missing-prototypes
-W[no-]pointer-arith
-W[no-]return-type
-W[no-]strict-prototypes
-W[no-]trigraphs
-W[no-]uninitialized
-W[no-]unknown-pragmas
-W[no-]unused-function
-W[no-]unused-variable
-X
-x assembler-with-cpp
-x c
-x c++
-Xlinker

 

関連情報