Define symbol name for the preprocessor.
SPARC: 77/90 x86:77
This option only applies to .F and .F90 source files.
-Dname=def Define name to have value def
-Dname Define name to be 1
On the command line, this option will define name as if:
#define name[=def]
had appears in the source file. If no =def specified, the name name is defined as the value 1. The macro symbol name is passed on to the preprocessor fpp (or cpp -- see the -xpp option) for expansion.
Following are the predefined values (these symbols have two leading underscores):
The compiler version is predefined (in hex) in _ _SUNPRO_F77 and _ _SUNPRO_F90
Example:
For FORTRAN 77 5.0, _ _SUNPRO_F77=0x500For Fortran 90 2.0, _ _SUNPRO_F90=0x200
The following values are predefined on appropriate systems:
_ _sparc, _ _unix, _ _sun, _ _i386, _ _SVR4, _ _SunOS_5_5_1, _ _SunOS_5_6, _ _SunOS_5_7
For instance, the value _ _i386 is defined on systems compatible with the 80386 (including the 80486), and it is not defined on SPARC systems. You can use these values in such preprocessor conditionals as the following.
#ifdef _ _sparc
From earlier releases, these values (with no underscores) are also predefined, but they may be deleted in a future release:
sparc, unix, sun, i386
On SPARC V9 systems, the _ _sparcv9 macro is also defined.
The compilers use the fpp(1) preprocessor by default. Like the C preprocessor cpp(1), fpp expands source code macros and enables conditional compilation of code. Unlike cpp, fpp understand Fortran syntax, and is preferred as a Fortran preprocessor. Use the -xpp=cpp flag to force the compiler to specifically use cpp rather than fpp.