HP Fortran v2.9 for HP-UX 11i v2 Release Note*5991-0697*

HP Fortran for HP-UX v2.9
What’s in This Version
Chapter 1 13
Specifying a binary conversion
There are three ways to specify what file/unit should be converted, and which conversion to
apply (in priority, with highest priority listed first):
Environment variable: “FORT_CONVERT<unit_num>”
Environment variable: “FORT_CONVERT”—all I/O units
Argument to OPEN: “CONVERT=”
Typically, code is written via the CONVERT=argument to OPEN and INQUIRE. Therefore,
this option was given the higher priority status to allow overriding “normal” coding via the
environment variable.
NOTE The CONVERT parameter to OPEN is only available via f90 version 2.7 or
later, and is only accepted for UNFORMATTED files.
Resolving issues with unaligned data
The following suggestions will aid with issues regarding unaligned data:
For Itanium
—based applications
As a quick fix, add the following call to the main program:
call allow_unaligned_data_access( )
Then, link in an additional library that fixes these alignment issues at runtime:
-lunalign
Longer term, try compiling with the following flag:
+allow_unaligned
An example would be:
PROGRAM bs30
INTEGER*2 i2(10)
INTEGER*4 i4
EQUIVALENCE (i2(2), i4)
DATA I4 /z’FFFF0000’/
i4=12
call allow_unaligned_data_access()
print *,i4
END