Option Type | Default Value | #pragma options | C | C++ |
-qoption | nosource | SOURCE | x | x |
Syntax:
-qsource | -qnosource SOURCE | NOSOURCE
Purpose
Produces a compiler listing and includes source code.
Notes
The noprint
option overrides this option.
Parts of the source can be selectively printed by using pairs of #pragma options source and #pragma options nosource preprocessor directives throughout your source program. The source following #pragma options source and preceding #pragma options nosource is printed.
Example
The following code causes the parts of the source code
between the #pragma options directives to be
included in the compiler listing:
#pragma options source . . . /* Source code to be included in the compiler listing is bracketed by #pragma options directives. */ . . . #pragma options nosource
To compile myprogram.c to produce a compiler listing that includes the source for myprogram.c, enter:
xlC myprogram.c -qsource
List of Compiler Options and Their
Defaults
Options that Specify Compiler Output