Option Type | Default Value | #pragma options | C | C++ |
-flag | - | - | x | x |
Syntax
-#
Purpose
Traces the compilation without invoking anything. This
option previews the compilation steps specified on the command
line. When the xlC command is issued with this
option, it names the programs within the preprocessor, compiler,
and linkage editor that would be invoked, and the options that
would be specified to each program. The preprocessor, compiler,
and linkage editor are not invoked.
Notes:
The -# option overrides the -v option. It displays
the same information as -v, but does not invoke
the compiler. Information is displayed to standard output.
Use this command to determine commands and files will be involved in a particular compilation. It avoids the overhead of compiling the source code and overwriting any existing files, such as .lst files.
Example
To preview the steps for the compilation of the source
file myprogram.c, enter:
xlC myprogram.c -#
List of Compiler Options and Their
Defaults
Options that Define the Compiler Output