[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with TCP socket on RTEMS 4.8.1 (ARM BSP)
- Date: Wed, 3 Sep 2008 14:57:41 +0600
- From: nightradio at gmail.com (Alex Zolotov)
- Subject: Problem with TCP socket on RTEMS 4.8.1 (ARM BSP)
That's good :) Thanks.
On Wed, Sep 3, 2008 at 1:51 PM, Ralf Corsepius <ralf.corsepius at rtems.org>wrote:
>
> OK, this the old arm/endianness-bug in newlib, I had fixed a long time
> ago. Apparently, it is fixed in rtems-4.9 and rtems-4.10's toolchains,
> but still seems to be present in rtems-4.8:
>
> > cat tmp.c
> #include <machine/endian.h>
>
> > arm-rtems4.8-gcc -Wp,-dD -save-temps -c tmp.c
> > grep ENDIAN tmp.i
> #define __IEEE_BIG_ENDIAN
> #define __IEEE_BYTES_LITTLE_ENDIAN
> #define BIG_ENDIAN 4321
> #define LITTLE_ENDIAN 1234
> #define BYTE_ORDER BIG_ENDIAN
>
> > arm-rtems4.9-gcc -Wp,-dD -save-temps -c tmp.c
> > grep ENDIAN tmp.i
> #define __IEEE_LITTLE_ENDIAN
> #define BIG_ENDIAN 4321
> #define LITTLE_ENDIAN 1234
> #define BYTE_ORDER LITTLE_ENDIAN
>
> > arm-rtems4.10-gcc -Wp,-dD -save-temps -c tmp.c
> > grep ENDIAN tmp.i
> #define __IEEE_LITTLE_ENDIAN
> #define BIG_ENDIAN 4321
> #define LITTLE_ENDIAN 1234
> #define BYTE_ORDER LITTLE_ENDIAN
>
>
> Ralf
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20080903/2139c1b5/attachment.html