Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: Heribert Dahms To: "'Randall R Schulz'" , David , Mark Himsley Cc: cygwin AT cygwin DOT com Subject: RE: od Date: Tue, 19 Feb 2002 20:21:51 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain 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/