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]

Re: =?gb2312?B?u9i4tDogT25lIHF1ZXN0aW9u?=


In a message dated 8/12/98 2:13:50 AM Pacific Daylight Time,
zhumin@public1.ptt.js.cn writes:

> a decimal integer like 4 has been
>  expressed in hex 00 00 00 04 in the datafile, but on PC datafile
>  it is always expressed in hex 04 00 00 00
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.


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