Directives

HP FORTRAN 77™supports more than seventy directives; of these, only a handful are supported by HP Fortran; see “Directives” (page 134), for the directives that are supported and for the new directive syntax. Note that, except for the LISTdirective, the HP Fortran directives have more

limited functionality than their HP FORTRAN 77™counterparts; see the HP Fortran Programmer's Reference.

Although most of the HP FORTRAN 77 directives are not supported by HP Fortran, some of their functionality is available through command-line options; see Table 10-3.

Table 39 HP FORTRAN 77 directives supported by f90 options

HP FORTRAN 77 directive

HP Fortran option

Remarks

ANSI

+langlvl=f90

Applies to Fortran 90 instead of FORTRAN 77™.

ASSEMBLY

+asm

 

AUTODBL DBL

+autodbl[4]

 

AUTODBL OFF

+noautodbl

 

CONTINUATIONS

not available

Obsolete; the functionality enabled by the directive

 

 

is now the default.

DEBUG

-g

 

IF/ELSE/ENDIF

not available

Use C preprocessor ( cpp) directives

GPROF (ON)

+gprof

 

GPROF OFF

+nogprof

 

HP_DESTINATION

+DAor +DS

 

INCLUDE

 

Use the Fortran 90 INCLUDEline.

INIT

+Oinitcheck

Option also saves all symbols.

LIST_CODE

+asm

 

LONG

+autodbl[4]

Option also affects reals.

LOWERCASE

+[no]uppercase

Lowercase is default.

NLS

+nls

 

ONETRIP

+[no]onetrip

 

POSTPEND

+[no]ppu

 

RANGE (ON)

+check=all or -C

 

RANGE OFF

+check=none

 

SAVE_LOCALS (ON)

+save

 

SAVE_LOCALS OFF

+nosave

 

SET

-D or -U

Use the C preprocessor #define directive.

STANDARD_LEVEL ANSI

+langlvl=f90

Applies to Fortran 90 instead of FORTRAN 77.

SYMDEBUG

-g

 

UPPERCASE

+[no]uppercase

Lowercase is the default.

WARNINGS

-w

 

136 Migrating to HP Fortran

Page 136
Image 136
HP UX Fortran Software manual Directives, HP Fortran 77 directives supported by f90 options