-### (-#) (pound sign)

Pragma equivalent

None.

Purpose

Previews the compilation steps specified on the command line, without actually invoking any compiler components.

When this option is enabled, information is written to standard output, showing the names of the programs within the preprocessor, compiler, and linker that would be invoked, and the default options that would be specified for each program. The preprocessor, compiler, and linker are not invoked.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -###-------------------------------------------------------><

Read syntax diagramSkip visual syntax diagram
>>- -#---------------------------------------------------------><

Usage

You can use this command to determine the commands and files that 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.

This option displays the same information as -v, but it does not invoke the compiler. The -### (-#) option overrides the -v option.

Predefined macros

None.

Examples

To preview the steps for the compilation of the source file myprogram.c, enter:

xlc myprogram.c -###

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us