HP Fortran Programmer's Guide (March 2010)
Porting to HP Fortran
Compatibility extensions
Chapter 11 247
Compatibility extensions
HP Fortran includes a variety of extensions to the Fortran 90 language. Most of these are
compatibility extensions—statements, intrinsic routines, and compiler directives that are
specific to nonstandard implementations of Fortran 90. For example, if you are porting a
program that contains the ACCEPT statement, you do not have to edit the part of the program
that contains this nonstandard statement because it is one of the compatibility extensions of
HP Fortran.
The following sections describe the compatibility extensions. For a list of all
HP Fortran language extensions, see the HP Fortran Programmer’s Reference.
Statements
Except for the ON statement (see “Using the ON statement” on page 127), all of the
nonstandard statements supported by HP Fortran are provided for compatibility. These are
listed by vendor in Table 11-1. Check the description of each statement in the HP Fortran
Programmer’s Reference to confirm compatibility.
Table 11-1 Compatibility statements
Statement Implementation Description
ACCEPT DEC Reads from standard
input.
AUTOMATIC Sun Allocates storage on the
stack.
BYTE DEC Declares entities of type
integer.
DECODE Earlier versions
of Fortran
Inputs formatted data
from internal storage.
DOUBLE COMPLEX Earlier versions
of Fortran
Declares entities of type
double complex.
ENCODE Earlier versions
of Fortran
Outputs formatted data to
internal storage.
END (structure
definition)
DEC Terminates the definition
of a structure or union.