Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

porting binary data files from HP-UX (PA-RISC) paltform

Michal_Kvasnicka
Beginner
963 Views

Hi,

could you recommend me some methodology, how to transfer fortran77 code and corresponding binary data files (read by direct access) from HP-UX c80 B.11.11 U 9000/785 platform to the Linux86_64 (Intel/AMDplatform with INTEL Fortran 11.1 compiler.

My main problem is the reading (via direct access) of the binary data files which were created on HP-UX.

Thanks in advance,

Michal

0 Kudos
3 Replies
mriedman
Novice
963 Views

Hello Michal,

HP RISC machines are big endian, x86 is little endian. If youbuild with ifort then youshould use the F_UFMTENDIAN=big environment setting for binary files. That should do it, no recompilation needed. You can even specify which unit number should or should not be converted.

Cheers

Michael

0 Kudos
Michal_Kvasnicka
Beginner
963 Views
The right way how to play with big_endian (HP-UX, PA_RISC) binary files is:

1. setup environment variable via shell command: export F_UFMTENDIAN=big
2. use the following compiler option: -assume byterecl

Michal
0 Kudos
Steven_L_Intel1
Employee
963 Views
My preference would be to OPEN the file with CONVERT="BIG_ENDIAN" if you can change the source. -assume byterecl is needed only if RECL= appears in the OPEN for the unit and the program assumes that the RECL= units are in bytes.
0 Kudos
Reply