From: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
Subject: Re: big endian and little endian
Date: 6 Dec 1994 23:02:09 GMT [thread overview]
Message-ID: <3c2qhh$867@jac.zko.dec.com> (raw)
In-Reply-To: 3c2dc6$8po@serra.unipi.it
In article <3c2dc6$8po@serra.unipi.it>, ferrovia@pimac2.iet.unipi.it (Massimo Macucci) writes:
|>This might be in the FAQ, but I have not been able to retrieve it.
|>A group here has developed applications on hp workstations, which are
|>"different" endian with respect to the Alphas. Now they would like
|>to switch to the new Alphas, but they have the problem that binary
|>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...
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.)
Conversions can also be avoided (obviously) if ASCII-format files are
used.
------------------------------ Opinionative -------------------------------
Stephen Hoffman, NREMT-I, N1THN hoffman@xdelta.enet.dec.com
OpenVMS Engineering, Digital Equipment Corporation, Nashua NH
next prev parent reply other threads:[~1994-12-06 23:02 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 [this message]
1994-12-09 15:31 ` Robert Hickler
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