HP Fortran Programmer's Guide (March 2010)
Porting to HP Fortran
Using porting options
Chapter 11258
Porting from Tru64 to HP Fortran
Support has been added for options that will assist users in porting applications from Tru64
to HP Fortran. Wherever possible, these options mimic the behavior of their counterparts in
the Tru64 Fortran compiler.
+cfc
The +cfc flag has been added to the Fortran compiler. +cfc allows you access to the
newly-implemented Tru64 Fortran options.You can call them in one of two ways:
/opt/fortran90/tru64/f90
opt/fortran90/bin/f90 and then place +cfc in the command line
It is important to note that +cfc requires the following runtime library patches to function
properly:
• PHSS_31970—liblO77 11.22/11.23 0409
• PHSS_31971—libcl 11.11
• PHSS_31972—libcl 11.23 0409 (also pa-sharelibs for use through aries)
• PHSS_31973—libF90 11.22/11.23 0409
• PHSS_31974—libF90 11.11
NOTE +cfc will not work without the patches listed above.
Enhancements
The following enhancements have been made to support the addition of new Tru64 Fortran
options:
• Added CLF_TRU64 bit to command-line flags, used to distinguish migration options from
‘regular’ options.
• Added support for CLF_DETACHED_SUB_OPT bit in command-line flags, used to indicate
flags with a space-delimited sub-option (-foo bar), not to be confused with flags that take a
space-separated argument.
• Added TRU64DRIVER as new (pseudo-) phase in the f90 driver.