Problem with TCP socket on RTEMS 4.8.1 (ARM BSP)

Alex Zolotov nightradio at gmail.com
Wed Sep 3 08:57:41 UTC 2008


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://lists.rtems.org/pipermail/users/attachments/20080903/2139c1b5/attachment.html>


More information about the users mailing list