Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: robert@accelr8.com (Robert Hickler)
Subject: Re: big endian and little endian
Date: Fri, 9 Dec 1994 15:31:19 GMT	[thread overview]
Message-ID: <D0Jv48.9tH@accelr8.com> (raw)
In-Reply-To: 3c2qhh$867@jac.zko.dec.com

In article <3c2qhh$867@jac.zko.dec.com>,
Stephen Hoffman <hoffman@xdelta.enet.dec.com> wrote:
>
>In article <3c2dc6$8po@serra.unipi.it>, ferrovia@pimac2.iet.unipi.it (Massimo Macucci) writes:
>|>files cannot be exchanged between the hp's and the Alphas due to the 
>|>different byte ordering.
>|>Does anybody know a good solution for this problem, except for the 
>|>obvious one of rewriting the application ?
>|>                                         Massimo Macucci                      
>
>  I know of no general purpose conversion tool.  It's easy to code
>  the simple case(s), but a tool that handled the general case would
>  appear to be a hairy problem in file description specification and
>  parsing...
Accelr8 has a commercial general purpose tool called Open TRANSL8 that handles
byte swapping (and VAX <--> IEEE floating point) conversion.  It is
driven by a file specification.  Send mail if you want to know more.
>
>  If working in C on OSF/1, there are htonl() and ntohl() routines,
>  and (if I remember correctly) xdr.  HP likely supports both, so
>  using the same source code on both platforms appears possible.
>
>  Alpha floating point is little-endian IEEE.  Not sure about HP, but
>  I would suspect it's big-endian IEEE format.  (Simple conversion.)
True.
>
>  Conversions can also be avoided (obviously) if ASCII-format files are
>  used.
True again.
>
>  ------------------------------ Opinionative -------------------------------
>   Stephen Hoffman, NREMT-I, N1THN               hoffman@xdelta.enet.dec.com
>        OpenVMS Engineering, Digital Equipment Corporation, Nashua NH
>
Robert Hickler                            Tel   (303) 863-8088 
robert@accelr8.com                        Fax   (303) 863-1218
       Open Software Solutions(tm) from Accelr8 Technology 


  reply	other threads:[~1994-12-09 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-06 19:17 big endian and little endian Massimo Macucci
1994-12-06 20:24 ` Steve Lionel
1994-12-06 23:18   ` Andrew Gallatin
1994-12-06 21:26 ` Bruce Gordon
1994-12-06 23:02 ` Stephen Hoffman
1994-12-09 15:31   ` Robert Hickler [this message]
1994-12-14 14:32     ` Eric Frey
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