This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
=?gb2312?B?u9i4tDogu9i4tDogT25lIHF1ZXN0aW9u?=
- To: <N8TM at aol dot com>
- Subject: =?gb2312?B?u9i4tDogu9i4tDogT25lIHF1ZXN0aW9u?=
- From: "zhumin" <zhumin at public1 dot ptt dot js dot cn>
- Date: Sun, 17 May 1998 08:26:47 +0800
- Cc: <egcs at cygnus dot com>
>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