Mail Archives: cygwin/2002/02/19/15:00:28
Hi Randall,
no need to hack od because of endianess,
we are on *nix after all, so pipe it thru: dd conv=swab
If needed often, put it in a wrapper shell script or an alias!
Testing portably if you want it swapped or not
is left as an excercise for the reader 8-)
Bye, Heribert (heribert_dahms AT icon-scm DOT com)
> -----Original Message-----
> From: Randall R Schulz [SMTP:rrschulz AT cris DOT com]
> Sent: Tuesday, February 19, 2002 17:56
> To: David; Mark Himsley
> Cc: cygwin AT cygwin DOT com
> Subject: Re: od
>
> Sir,
>
> You have got to be kidding.
>
> For the record, the x86 architecture is little-endian, PowerPC, e.g., is
> bid-endian. On the off chance that you're running Windows NT (and
> Cygwin???) on an Alpha, I have to admit I don't know which byte ordering
> it
> uses.
>
> You will get the 16-bit output you want from od (any radix) if you run
> Darwin PPC, MacOS X or LinuxPPC, among other systems.
>
> Otherwise, what you request ain't gonna happen. If you want od to
> interpret
> and display integers with sizes greater than 1 byte in a way that differs
> from that of the local processor, you could create a hacked version of
> "od"
> for your personal use.
>
> Randall Schulz
> Mountain View, CA USA
>
[Heribert] [snip]
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -