This is the mail archive of the
mailing list for the Cygwin project.
- From: Heribert Dahms <heribert_dahms at icon-scm dot com>
- To: 'Randall R Schulz' <rrschulz at cris dot com>, David <cupcake at otaku dot freeshell dot org>, Mark Himsley <mark at mdsh dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 19 Feb 2002 20:21:51 +0100
- Subject: RE: od
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 (firstname.lastname@example.org)
> -----Original Message-----
> From: Randall R Schulz [SMTP:email@example.com]
> Sent: Tuesday, February 19, 2002 17:56
> To: David; Mark Himsley
> Cc: firstname.lastname@example.org
> Subject: Re: od
> 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
> 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
> 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
> for your personal use.
> Randall Schulz
> Mountain View, CA USA
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html