From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,380f3b52dd76ab91 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-12-06 15:44:54 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!gallatin From: gallatin@isds.duke.edu (Andrew Gallatin) Newsgroups: comp.sys.dec Subject: Re: big endian and little endian Date: 6 Dec 1994 23:18:22 GMT Organization: Duke University, Durham, N.C. Distribution: world Message-ID: <3c2rfu$bcu@news.duke.edu> References: <3c2dc6$8po@serra.unipi.it> <3c2har$q6n@jac.zko.dec.com> NNTP-Posting-Host: serov.isds.duke.edu Keywords: big endian little endian alpha Cc: In article <3c2har$q6n@jac.zko.dec.com>, Steve Lionel 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 # ##############################################################################