This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: od

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 (

> -----Original Message-----
> From:	Randall R Schulz []
> Sent:	Tuesday, February 19, 2002 17:56
> To:	David; Mark Himsley
> Cc:
> 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:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]