Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Fortran Preprocessor Options

The Fortran preprocessor fpp can be invoked automatically or by specifying compiler option fpp.

The following preprocessor options are available if you use the fpp compiler option.

Linux and macOS

Preprocessor options must start with a dash (-); for example, -macro=no.

Windows

Preprocessor options must start with a slash (/); for example, /macro=no.

Preprocessor Option

Description

B

Specifies that C++-style comments should not be recognized.

C

Specifies that C-style comments should not be recognized. This is the same as specifying c_com=no.

c_com={yes|no}

Determines whether C-style comments are recognized. If you specify c_com=no or C, C-style comments are not recognized. By default, C-style comments are recognized; that is, c_com=yes.

Dname

Defines the preprocessor variable name as 1 (one). This is the same as if a Dname=1 option appeared on the fpp command line. This is also the same as specifying the following line in the source file processed by fpp:

#define name 1

Dname=val

Defines name as if by a #define directive. This is the same as specifying the following line in the source file processed by fpp:

#define name var

Dname=val will be ignored if there are any non-alphabetic, non-numeric characters in name.

The D option has lower precedence than the U option. That is, if the same name is used in both a U option and a D option, the name will be undefined regardless of the order of the options.