- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1. setup environment variable via shell command: export F_UFMTENDIAN=big
2. use the following compiler option: -assume byterecl
Michal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page