Mapping of options

In z/OS® XL C/C++, to specify compiler options on the command line of the xlc utility, you can either:
  • Specify the -q form options. For example, -qansialias.
  • Specify the -Wc form options. For example, -Wc,ANSIALIAS.
In this document, the -q option form is used to refer to the options that are supported by z/OS XL C/C++.

The following table provides a mapping of compiler options that are supported by z/OS XL C/C++ and options that are supported by Open XL C/C++ 1.1, which have the same or similar functions. Suboptions of these options do not necessarily have a one-to-one mapping.

Options supported by z/OS XL C/C++ Similar/equivalent options supported by Open XL C/C++ 1.1
-# -###
-+ -x c++; See details.
-Bprefix None
-C -C
-c -c
-E -E
-e func -e func
-F None
-F cfg-file @files can be used to specify options but it doesn't has the same control as the configuration files.
-f None
-g -g
-I dir -I dir
-L dir -L dir
-l lib -l lib
-M -M
-MF file -MF file
-MQ target -MQ target
-MT target -MT target
-O, -qoptimize -O1, -O2, -O3; See details.
-0, -1, -2, -3 -O1, -O2, -O3
-o -o
-P -P; See details.
-p None
-q None
-r -r
-S None. See details.
-s None
-t comp None
-Uname -Uname
-u func -u func
-V -v; See details.
-v -v; See details.
-W<phase> See details.
-W<warning> -W<warning>
-q32, ILP32 None
-q64, LP64 -m64
-qaggrcopy None
-qaggregate None
-qalias None
-qansialias -fstrict-aliasing
-qarch -march
-qargparse None
-qarmode None
-qascii -fzos-le-char-mode=ascii
-qasm -fasm
-qasmdatasize None
-qasm -fasm
-qasmlib None
-qassert None
-qattribute None
-qbitfields=signed -fsigned-bitfields
-qbitfields=unsigned -funsigned-bitfields
-qchars=signed -fsigned-char
-qchars=unsigned -fno-signed-char, -funsigned-char
-qchecknew -fcheck-new
-qcheckout None
-qcics None
-qcompact -Os and -Oz; See details.
-qcompress None
-qconvlit -fexec-charset
-qcsect -mcsect
-qcvft None
-qdbrmlib None
-qdebug -g (DWARF only)
-qdefine -D
-qdfp None
-qdigraph -fdigraphs
-qdll None
-qdsauser None
-qenumsize=small -fshort-enums; See details.
-qepilog None
-qevents None
-qexecops None
-qeh -fexceptions
-qnoeh -fignore-exception
-qexpmac None
-qexportall -fvisibility=default
-qfasttempinc None
-qflag None; See details.
-qfloat See details.
-qfuncevent None
-qgenasm None
-qgoff None
-qgonumber None
-qhalt None
-qhaltonmsg None; See details.
-qhgpr None
-qhot None
-qignerrno -fno-math-errno; See details.
-qinclude -include
-qinfo -Wgroup; See details.
-qinitauto None
-qinline See details.
-qinlrpt None
-qipa None
-qkeyword None
-qlanglvl -std; See details.
-qlibansi None
-qlist None
-qlocale See details.
-qlongname None
-qlsearch None
-qmakedep -M; See details.
-qmargins None
-qmaxmem None
-qmemory None
-qmetal None
-qnamemangling None; See details.
-qnestinc None
-qobject -o file (z/OS UNIX only)
-qobjmodel None; See details.
-qoe None
-qoffset None
-qoptfile @file
-qphaseid -ftime-report
-qplist None
-qport None
-qpponly -E
-qprefetch None; See details.
-qprolog None
-qredir None
-qrent -mrent
-qreport None
-qreserved_reg None
-qrestrict -frestrict-args
-qroconst None
-qro None
-qround None
-qrtcheck None
-qrtti -frtti
-qsearch -I for z/OS UNIX files search only
-qsequence None
-qservice None
-qseverity None
-qshowinc -H
-qshowmacros -dM -E; See details.
-qskipsrc None
-qsource None
-qspill None
-qsplitlist None
-qsql None
-qsscomm None
-qstackprotect See details.
-qstart None
-qstaticinline None
-qstrict See details.
-qstrict_induction None
-qsuppress -Wgroup; See details.
-qsysstate None
-qtarget -mzos-target; See details.
-qtempinc None
-qtemplatedepth None
-qtemplaterecompile None
-qtemplateregistry None
-qteminal None
-qtest None
-qthreaded None
-qtmplparse None
-qtune None
-qundefine -U
-qunroll See details.
-qupconv None
-qvector -mvx, -mzvector, -fvectorize, -fslp-vectorize; See details.
-qwarn0x None
-qwarn64 None
-qwsizeof None
-qxplink None; The default compiler behavior is XPLINK under 64-bit mode.
-qxref None

Related information