オプションのマッピング

以下の表は、従来の IBM® XL C/C++ コンパイラー・オプションと、同じ関数または類似した関数を持つ Clang オプションのマッピングを示しています。 

これらのオプションのサブオプションは、必ずしも 1 対 1 マッピングではありません。
IBM XL C/C++ for AIX® 16.1.0 でサポートされるクラシック・オプション IBM Open XL C/C++ for AIX 17.1.1 でサポートされる類似/同等の Clang オプション
-+ -x c++
-# -###
-C! なし。デフォルトのコンパイラー動作は -C! のようになります。 が有効になっています。
-E 認識されないファイル名接尾部を持つファイルの場合は -E または -E -x c
-f -Wl、-f
-F なし
-G -shared -Wl、-G
-ma なし
-O -O0、-O1、-O2、-O3、または -Ofast
-p なし
-pg なし
-P -E -P -o file.i は、従来の -P オプションと同様の動作を取得します。
-q32 -m32
-q64 -m64
-qaggrcopy なし。デフォルトのコンパイラー動作は、-qaggrcopy が有効であったかのようになります。
-qalias=ansi -fstrict-aliasing
-qalias=noansi -fno-strict-aliasing
-qalias=[no]addrtaken なし
-qalias=[no]allptrs なし
-qalias=[no]global なし
-qalias=[no]restrict なし
-qalias=[no]typeptr なし
-qalign なし
-qalignrulefor なし
-qalloca なし
-qaltivec -maltivec
-qnoaltivec -mnoaltivec
-qarch -mcpu
-qasm -fasm
-qasm_as なし
-qassert なし
-qattr なし
-qbitfields=signed -fsigned-bitfields
-qbitfields=unsigned なし
-qcache なし
-qchars=signed -fsigned-char
-qchars=unsigned -funsigned-char
-qcheck なし
-qcinc なし
-qcompact -Os および -OZ
-qconcurrentupdate なし
-qcpluscmt なし。デフォルトのコンパイラー動作は、-qcpluscmt が有効であったかのようになります。
-qcrt なし。デフォルトのコンパイラー動作は、-qcrt が有効であったかのようになります。
-qnocrt -nostartfiles
-qc_stdinc -isystem
-qcpp_stdinc -isystem
-qdataimported なし
-qdatalocal なし
-qdbcs なし。コンパイラーは常時 UTF-8 ソース・ファイルをサポートします。
-qdbgfmt=dwarf -gdwarf-3
-qdbgfmt=dwarf4 -gdwarf-4
-qdbgfmt=stabstring なし
-qdbxextra -fno-eliminate-unused-debug-types
-qdfp なし
-qdigraph -fdigraphs
-qnodigraph -fno-digraphs
-qdirectstorage なし
-qdollar -fdollars-in-identifiers
-qdpcl なし
-qdump_class_hierarchy -Xclang -fdump-record-layouts
-qeh -fexceptions
-qnoeh -fignore-exceptions
-qenum なし
-qexpfile なし
-qextchk なし
-qfdpr なし
-qflag なし
-qfloat=[no]dfpemulate なし
-qfloat=[no]fenv なし
-qfloat=[no]fltint なし
-qfloat=[no]fold なし
-qfloat=[no]hscmplx なし
-qfloat=[no]hsflt なし
-qfloat=[no]hssngl なし
-qfloat=maf -ffp-contract=fast
-qfloat=nomaf -ffp-contract=off
-qfloat=[no]nans なし
-qfloat=relax -fno-honor-nans -fno-honor-infinities -fdenormal-fp-math=positive-zero -fno-signed-zeros -fno-rounding-math -freciprocal-math
-qfloat=norelax -fhonor-nans -fhonor-infinities -fdenormal-fp-math=ieee -fsigned-zeros -frounding-math -fno-reciprocal-math
-qfloat=[no]rndsngl なし
-qfloat=[no]rngchk なし
-qfloat=rrm -frounding-math
-qfloat=norrm -fno-rounding-math
-qfloat=[no]rsqrt なし
-qfloat=[no]single なし
-qfloat=[no]spnans なし
-qfloat=[no]subnormals なし
-qflttrap なし
-qformat -Wformat
-qfullpath なし。デフォルトのコンパイラー動作は、-qfullpath が有効であったかのようになります。
-qfuncsect -ffunction-sections
-qnofuncsect -fno-function-sections
-qfunctrace なし
-qgenproto なし
-qhalt -Werror
-qhaltonmsg なし
-qheapdebug なし
-qhelp -ヘルプ
-qhot -Ofast
-qhot=suboption なし
-qidirfirst なし
-qignerrno -fno-math-errno
-qignprag なし
-qinclude -組み込み
-qinfo なし
-qinitauto なし
-qinlglue なし。デフォルトのコンパイラー動作は、-qnoinlglue が有効であったかのようになります。
-qinline=auto -finline-functions
-qinline=noauto -fno-inline-functions -finline-hint-functions
-qnoinline -fno-inline
-qipa -flto
-qisolated_call なし
-qkeepinlines なし
-qkeepparm なし
-qkeyword なし
-qlanglvl -std
-qlargepage なし
-qldbl128 なし
-qlongdouble なし
-qlib -nodefaultlibs
-qnolibansi -fno-builtin
-qlibmpi なし。デフォルトのコンパイラー動作は、-qnolibmpi が有効であったかのようになります。
-qlinedebug -g1 および -gline-tables-only
-qlist -S
-qlistfmt なし
-qlistopt なし
-qlonglit なし
-qlonglong なし。デフォルトのコンパイラー動作は、-qlonglong が有効であったかのようになります。
-qmacpstr -fpascal-strings
-qmakedep なし
-qmaxerr -ferror-limit
-qmaxmem なし
-qmbcs なし。コンパイラーは常時 UTF-8 ソース・ファイルをサポートします。
-qminimaltoc なし
-qmkshrobj -shared
-qnamemangling なし
-qobjmodel なし
-qoldpassbyvalue なし
-qoptdebug なし
-qoptfile @file
-qoptimize --optimize
-qpack_semantic=gnu -fno-xl-pragma-pack
-qpack_semantic=ibm -fxl-pragma-pack
-qpath なし
-qpdf1 -fprofile-generate
-qpdf2 -fprofile-use
-qphsinfo -ftime-report
-qpic=small -fpic
-qpic=big -fPIC -mcmodel=large -Wl、-bbigtoc
-qppline なし
-qnoppline -E -P
-qprefetch なし
-qprint なし
-qpriority なし
-qprocimported なし
-qproclocal なし
-qprocunknown なし
-qprofile なし
-qproto なし。デフォルトのコンパイラー動作は、-qnoproto が有効であったかのようになります。
-qreport なし
-qreserved_reg なし
-qrestrict -frestrict-args
-qro なし。デフォルトのコンパイラー動作は、-qro が有効であったかのようになります。
-qroconst なし。デフォルトのコンパイラー動作は、-qroconst が有効であったかのようになります。
-qroptr なし。デフォルトのコンパイラー動作は、-qnoroptr が有効であったかのようになります。
-qnortti -fno-rtti
-qsaveopt なし
-qshowinc なし
-qshowmacros -dM
-qshowpdf なし
-qsimd=noauto -fno-vectorize -fno-slp-vectorize
-qskipsrc なし
-qslmtags なし
-qsmallstack なし
-qsmp なし
-qsource なし
-qsourcetype -x
-qsourcetype=default -x none
-qspeculateabsolutes なし
-qspill なし
-qsrcmsg -fcaret-diagnostics
-qnosrcmsg -fno-caret-diagnostics
-qstackprotect -fstack-protector
-qstaticinline なし
-qstatsym なし
-qstdinc -nostdinc
-qnostdinc -nostdinc++
-qstrict=association -fno-associative-math
-qstrict=noassociation -fassociative-math
-qstrict=nans -fhonor-nans
-qstrict=nonans -fno-honor-nans
-qstrict=infinities -fhonor-infinities
-qstrict=noinfinities -fno-honor-infinities
-qstrict=zerosigns -fsigned-zeros
-qstrict=nozerosigns -fno-signed-zeros
-qstrict=subnormals -fdenormal-fp-math=ieee
-qstrict=nosubnormals -fdenormal-fp-math=positive-zero または -fdenormal-fp-math=preserve-sign
-qstrict=operationprecision -fno-reciprocal-math
-qstrict=nooperationprecision -freciprocal-math
-qstrict=[no]vectorprecision なし
-qstrict=[no]reductionorder なし
-qstrict=[no]guards なし
-qstrict=[no]library なし
-qstrict=order -fno-associative-math
-qstrict=noorder -fassociative-math
-qstrict=ieeefp -fhonor-nans -fhonor-infinities -fdenormal-fp-math=ieee -fsigned-zeros -frounding-math -fno-reciprocal-math
-qstrict=noieeefp -fno-honor-nans -fno-honor-infinities -fdenormal-fp-math=positive-zero -fno-signed-zeros -fno-rounding-math -freciprocal-math
-qstrict=exceptions -fhonor-nans -fhonor-infinities -fdenormal-fp-math=ieee -ffp-exception-behavior=strict
-qstrict=noexceptions -fno-honor-nans -fno-honor-infinities -fdenormal-fp-math=positive-zero -ffp-exception-behavior=ignore
-qstrict=precision -fno-associative-math -fdenormal-fp-math=ieee -fno-reciprocal-math
-qstrict=noprecision -fassociative-math -fdenormal-fp-math=positive-zero -freciprocal-math
-qstrict_induction なし
-qsuppress なし
-qsymtab なし
-qsyntaxonly -fsyntax-only
-qtabsize なし
-qtbtable なし。デフォルトのコンパイラー動作は、-qtbtable=full が有効であったかのようになります。
-qtempinc なし
-qtemplatedepth -ftemplate-depth
-qtemplaterecompile なし
-qtemplateregistry なし
-qtempmax なし
-qthreaded -pthread
-qtimestamps なし
-qtls -ftls-model
-qtmplinst なし
-qtmplparse なし
-qtocdata なし
-qtocmerge なし
-qtrigraph -trigraphs
-qtune なし
-qtwolink -bcdtors:mbr
-qunique なし
-qunroll -funroll-loops
-qunroll=yes なし
-qnounroll -fno-unroll-loops
-qunwind なし
-qupconv なし。デフォルトのコンパイラー動作は、-qnoupconv が有効であったかのようになります。
-qutf なし
-qvecnvol -mabi=vec-extabi
-qnovecnvol -mabi=default
-qversion -- バージョン
-qvisibility なし。デフォルトのコンパイラー動作は、-qnovisibility が有効であったかのようになります。
-qvrsave なし。デフォルトのコンパイラー動作は、-qnovrsave が有効であったかのようになります。
-qwarn0x なし
-qwarn64 なし
-qweakexp なし
-qweaksymbol なし。デフォルトのコンパイラー動作は、-qweaksymbol が有効であったかのようになります。
-qxcall なし
-qxref なし
-s -Wl、-s
-t なし
-v -v
-V -v
-y なし
-Z -Wl、-Z

関連情報