Preprocessing Only: -E, -EP, -F, and -P

Use either the -E, -P, or the -F option to preprocess your .fpp source files without compiling them.

When you specify the -E option, the Intel® Fortran Compiler's preprocessor expands your source module and writes the result to standard output. The preprocessed source contains #line directives, which the compiler uses to determine the source file and line number during its next pass. For example, to preprocess two source files and write them to stdout, enter the following command:

IA-32 applications:

prompt>ifc -E prog1.fpp prog2.fpp

Itanium(TM)-based applications:

prompt>efc -E prog1.fpp prog2.fpp

When you specify the -P option, the preprocessor expands your source module and stores the result in a file in the current directory. By default, the preprocessor uses the name of each source file with the .f extension, and there is no way to change the default name. For example, the following command creates two files named prog1.f and prog2.f, which you can use as input to another compilation:

IA-32 applications:

prompt>ifc -P prog1.fpp prog2.fpp

Itanium-based applications:

prompt>efc -P prog1.fpp prog2.fpp

The -EP option can be used in combination with -E or -P. It directs the preprocessor to not include #line directives in the output. Specifying -EP alone is the same as specifying -E and -EP.

 Caution
When you use the -P option, any existing files with the same name and extension are not overwritten and the system returns the error message invalid preprocessor output file.