This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: =?gb2312?B?u9i4tDogT25lIHF1ZXN0aW9u?=
- To: zhumin at public1 dot ptt dot js dot cn, ian at cygnus dot com
- Subject: Re: =?gb2312?B?u9i4tDogT25lIHF1ZXN0aW9u?=
- From: N8TM at aol dot com
- Date: Wed, 12 Aug 1998 08:49:24 EDT
- Cc: egcs at cygnus dot com
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.