Summary of Compiler Options by Function

The compiler options are divided into groups by function. The following list tells you which options are in each group.

Output File Management Options
/F (/Fa, /Fc, /Fe, /Fi, /Fl, /Fm, /Fn, /Fo, /Ft), /qmakedep
Use these options to control the files that the compiler produces.
 
include File Search Options
/I, /Xc, /Xi
These options control which paths are searched when the compiler looks for include files. The paths can also be defined in the INCLUDE and ICC environment variables.
Listing File Options
/L (/La, /Lb, /Le, /Lf, /Li, /Lj, /Lp, /Ls, /Lt, /Lu, /Lx, /Ly)
Use these options to control whether or not a listing file is produced, the type of information in the listing, and its appearance.

At the minimum, the listing will show the options used by the compiler, any error messages, and a standard header that shows:

The following options only modify the appearance of a listing; they do not produce a listing. Use them with one of the other listing file options, or with the /Fl option, to produce a listing:

/Le, /Li, /Lj, /Lp, /Lt, /Lu

The options can be used in combination with each other. For example, specify /Lsx to produce a listing file with source code and cross-references.
 
Note: The compiler listing file is not intended to be used as a programming interface.
Debugging and Diagnostic Information Options
/N, /qdbgunref, /Ti, /Tm, /Tn, /Tx, /W
These options control:

/Ti prepares your output for debugging with the IBM C and C++ Compilers debugger.

Note: The information generated by the IBM C and C++ Compilers debugger and /Wgrp options is provided to help you diagnose problems in your code. Do not use the diagnostic information as a programming interface.

Source Code Options
/J, /S (/Sd, /Sg, /Sh, /Si, /Sm, /Sn, /Sp, /Sq, /Sr, /Ss, /Su, /Sv) /qbitfields, /qdigraph, /qlonglong, /Tc, /Td, /Tp
Preprocessor Options
/D, /P, /qignprag, /U
Use these options to control the use of the preprocessor.
/Pc, /Pd, and /Pe are suboptions of /P. Specifying /Pc- is the same as specifying /P+c-. The options can be used in combination with each other. For example, specify /Pcde to preserve comments, suppress line directives, and redirect the preprocessor output to stdout.
 
Code Generation Options
/G (/G, /Gd, /Ge, /Gf, /Gi, /Gk, /Gl, /Gm, /Gn, /Gp, /Gr, /Gs, /Gt, /Gv, /Gx, /Gy)
/M, /Nd, /Nt, /Nx, /O, (/O, /Oc, /Oi, /Om, /Op, /Oq, /Os)
/qalias, /qautoimported, /qautothread, /qisolated_call, /qlibansi, /qtune, /qro, /R
Use these options to specify the type of code that the compiler will produce. The types of code include:
Other Options
/B, /C, /H, /Q, /qsomvolattr, /V

Use these options to control linker parameters, logo display, default char type, and other IBM C and C++ Compilers settings.

 
Options for New ANSI Standard
/qrtti


Summary of Compiler Options
Language-Dependent Options
Compiler Option Dependencies
Compiler Option for 16-bit Declarations
Incompatible Compiler Options