delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/19/15:00:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C83A9B31@serv-075.icon-germany.local>
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
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)

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019