Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: gallatin@isds.duke.edu (Andrew Gallatin)
Subject: Re: big endian and little endian
Date: 6 Dec 1994 23:18:22 GMT	[thread overview]
Message-ID: <3c2rfu$bcu@news.duke.edu> (raw)
In-Reply-To: 3c2har$q6n@jac.zko.dec.com

In article <3c2har$q6n@jac.zko.dec.com>,
Steve Lionel <lionel@quark.enet.dec.com> wrote:
>If the application is in Fortran, they can use the CONVERT='BIG_ENDIAN'
>option in the OPEN statement which will cause DEC Fortran to automatically
>do the byte-swap on input or output.  Otherwise it should be a straightforward
>task to write a program to process the file and do the byte swap as
>necessary.

Alternatively, they could convert their data files using dd & the
conv=swab option:
%dd if=file.hp of=file.dec conv=swab

This is admittedly less transparent, but we used this when moving some
researchers from sparcs to Alphas.

BTW- this is assuming OSF/1.

Drew


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


  reply	other threads:[~1994-12-06 23:18 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 [this message]
1994-12-06 21:26 ` Bruce Gordon
1994-12-06 23:02 ` Stephen Hoffman
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