Preprocessing Overview

This section describes the options you can use to direct the operations of the preprocessor. Preprocessing performs such tasks as macro substitution, conditional compilation, and file inclusion. You can use the preprocessing options to direct the operations of the preprocessor from the command line. The compiler preprocesses files as an optional first phase of the compilation.

The Intel® Fortran Compiler provides the fpp binary to enable preprocessing. If you want to use another preprocessor, you must invoke it before you invoke the compiler. Source files that use a .fpp or .F file extension are automatically preprocessed.

Caution
Using a preprocessor that does not support Fortran can damage your Fortran code, especially with FORMAT statements. For example, FORMAT (\\I4) changes the meaning of the program because the backslash "\" indicates end-of-record.

Preprocessor Options

Use the options in this section to control preprocessing from the command line. If you specify neither option, the preprocessed source files are not saved but are passed directly to the compiler. Table that follows provides a summary of the available preprocessing options.

Option

Description

-A[-]

Removes all predefined macros.

-Dname={#|text}]

Defines the macro name and associates it with the specified value. The default (-Dname) defines a macro with value =1.

-E

Directs the preprocessor to expand your source module and write the result to standard output.

-EP

Same as -E but does not include #line directives in the output.

-F

Preprocess to an indicated file.

-fpp{n}

Uses the fpp preprocessor on Fortran source files.
n
=0: disable CVF and #directives n=1: enable CVF conditional compilation and #directives (default)
n
=2: enable only #directives,
n
=3: enable only CVF conditional compilation directives.

-P

Directs the preprocessor to expand your source module and store the result in a file in the current directory.

-Uname

Eliminates any definition currently in effect for the specified macro.

-Idir

Adds directory to the include file search path.

-X

Removes standard directories from the include file search path.