HP Fortran Programmer's Guide (B3908-90031; September 2011)

Porting to HP Fortran
Compatibility extensions
Chapter 11 239
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 Programmers 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 Programmers 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.
MAP DEC Defines a union within a
structure.