Re: Reading binary file generated from 32-bit machine using 64-bit machine



On 2007-11-25, yonas_kassa@xxxxxxxxxxx <yonas_kassa@xxxxxxxxxxx> wrote:

I am sorry if i come up with elementary question but i spend two days
trying to figure out how to read a binary file generated by gfortran
on a 32 bit i386 machine using a 64 bit x86_64 machine. i tried to use
the flag -frecord-marker=4 to change the default from 8 to 4 bytes on
64 bits machine.

Please give some details about the machines you are running on.

Which versions of gfortran do you use on the two machines?

What operating systems do you use?

The default for record markers was changed to four bytes from
(mostly) eight bytes with gfortran 4.2.0. If either of your
systems uses 4.1.*, you'll need to specify -frecord-marker=8
for gfortran 4.2.* .

However, this still doesn't seem to work. I just
can't read the binary file despite so many different trial.

What exactly does "doesn't work" mean?

Are you getting error messages / reading in the wong data / ???

Can you provide a simple example that we can corss-check?
.



Relevant Pages