This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

=?utf-8?B?5Zue5aSNOiBPbmUgcXVlc3Rpb24=?=


>I assume the question is about reading Fortran unformatted files
>written on another system by a program compiled with another compiler.
>In that case, the answer is that you can't in general do this, because
>the basic file format may be different, apart from the endianness of
>the data.  Further, the g77 runtime doesn't have the ability to read
>unformatted data written by g77 with a different byte order.
>
>The recommended way to deal with binary data independent of compiler
>and hardware is to use a Fortran-callable portable binary format.  HDF
>from NCSA is probably the one to go for.  [The same sort of technique
>could be used by the g77 runtime for unformatted files, but isn't
>likely to be implemented any time soon.]
>
>Sorry, I'm at fault for not yet having written up this FAQ for the
>manual.
>
Dear Sir,

Your answer is what I want, thanks. By the way where I can get an
introduction or guide to g77 fortran compiler, and FAQ or the HDF from
NCSA you mentioned ?

so many thanks to others' replies

Zhu Min




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]