(no subject)

Alexei Gorbatov alexei at rses.anu.edu.au
Fri Nov 23 14:07:39 EST 2001


Well, it is the problem. However, I have Linux on SUN Box as well.
The DEC Alpha compiler can compile Fortran programs with option "convert".
This
option define "open" statement and format of the files.
Unfortunately, g77 does not support this option. Am I right?




-----Original Message-----
From: linux-admin at lists.samba.org [mailto:linux-admin at lists.samba.org]On
Behalf Of Sam Couter
Sent: Friday, November 23, 2001 11:53 AM
To: Alexei Gorbatov
Cc: linux at lists.samba.org
Subject: Re: (no subject)


Alexei Gorbatov <alexei at rses.anu.edu.au> wrote:
> I need to read a raw binary file from linux and SUN based programs.
> However, the file format is different for such files in linux and SUN.
> How can I  solve this problem?

Are you talking about the endianness being different between Intel x86
and SPARC architectures?

Search Google for "endianness" or maybe "byte swapping".

The following link refers to graphics files, but the situation is the
same with any binary data:

http://www.faqs.org/faqs/graphics/fileformats-faq/part4/section-6.html
--
Sam Couter          |   Internet Engineer   |   http://www.topic.com.au/
sam at topic.com.au    |   tSA Consulting      |
OpenPGP key ID:       DE89C75C,  available on key servers
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C





More information about the linux mailing list