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

Porting to HP Fortran
Using porting options
Chapter 11 249
If the file is compiled with the +extend_source option, the compiler allows lines as long as 254
characters in either fixed or free form. The default line length is 72 characters for fixed form and 132
characters for free form.
See the HP Fortran Programmers Reference for detailed information about the different source and the
+langlvl=90, +source, and +extend_source options.
Escape sequences
Some implementation of Fortran process certain characters preceded by the backslash (\) as a C-like escape
sequence. For example, if a program containing the statement:
PRINT *, 'a\nb\nc'
were compiled under an implementation that recognized escape sequences, the statement would output:
a
b
c
When compiled in strict compliance with the Standard, the same statement would output:
a\nb\nc
Although HP Fortran does not recognize escape sequences by default, you can use the +escape option to
make the compiler to recognize them. Refer to the HP Fortran Programmers Reference for more
information about escape sequences.
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