tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: host endianness



On Tue, 09 Feb 2010, Ignatios Souvatzis wrote:
> >  > >    echo 'C!' | od -N 2 -h | sed 's/[^1234]*//;s/2143/4321/p;d'
> >  > No 'od -h' on Solaris 8, neither on 10.
> Works fine with 'od -x' instead. What do our standards lawyers say?

TOG says "od -t x2" is standard, and "od -x" is an XSI option.

src/tools/compat already has a configure script that sets BYTE_ORDER,
and I'd prefer it if we could use that definition, or add another mini C
program to the configure script, rather than relying on yet another host
tool.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index