Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: gallatin@renoir.isds.duke.edu (Andrew Gallatin)
Subject: Re: Endian problems...
Date: 1995/11/08	[thread overview]
Message-ID: <47qk6j$7uj@news.duke.edu> (raw)
In-Reply-To: 47me7b$9an@taco.cc.ncsu.edu

In article <47me7b$9an@taco.cc.ncsu.edu>,  <decroix@brunt.meas.ncsu.edu> wrote:
>
>I want to *read* a IEEE floating point file and *write* a dec-native unformatted

Can't you just write the file w/the wrong byte ordering & then run the
result through 'dd conv=swap' to get a file w/the proper byte
ordering?

From the dd(1) man page:
...
  conv=specification[,specification ...]
      Specifies one or more of the following conversions:
..
      swab
         Swaps every pair of bytes.
...

We've done this to convert raw files created on a sparc for use w/our
alphas.

Drew
##############################################################################
#		Andrew Gallatin, Computer Project Manager                    #
#	    Institute of Statistics and Decision Sciences		     #
#	  Box 90251, Duke University, Durham, NC 27708-0251		     #
##############################################################################





  reply	other threads:[~1995-11-08  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-07  5:00 Endian problems decroix
1995-11-08  5:00 ` Andrew Gallatin [this message]
1995-11-13  5:00   ` Lukas Rosenthaler
1995-11-13  5:00     ` Andrew Gallatin
1995-11-09  5:00 ` Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox