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]

=?gb2312?B?u9i4tDogu9i4tDogT25lIHF1ZXN0aW9u?=


>As your example shows, PC compilers generally use the internal fully-reversed
>byte order, so, when reading a Unix data file, you will need reverse its
>bytes. For example, g77 would permit you to EQUIVALENCE an INTEGER and a
>CHARACTER array, so you could swap the bytes.
>
Hi,

If g77 compiler could not do the byte swapping for me, the way you recommend is the only thing I can do. so many thanks.

Zhu Min



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