回复: One question
N8TM@aol.com
N8TM@aol.com
Wed Aug 12 05:50:00 GMT 1998
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.
More information about the Gcc
mailing list