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 12:33:22 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!caen!crl.dec.com!crl.dec.com!jac.zko.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.sys.dec Subject: Re: big endian and little endian Date: 6 Dec 1994 20:24:59 GMT Organization: Digital Equipment Corporation, Nashua NH Distribution: world Message-ID: <3c2har$q6n@jac.zko.dec.com> References: <3c2dc6$8po@serra.unipi.it> Reply-To: lionel@quark.enet.dec.com (Steve Lionel) NNTP-Posting-Host: quark.zko.dec.com Keywords: big endian little endian alpha X-Newsreader: mxrn 6.18-26 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 ? 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. -- Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For a summary of Digital's Internet services, send mail to info@digital.com