From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7e86b7f8965dd11d X-Google-Attributes: gid1164f8,public From: jfm6@jagunet.com (John McNamara) Subject: Re: DEC Alpha- big endian or little endian? Date: 1996/02/03 Message-ID: #1/1 X-Deja-AN: 137970533 references: <4ejjs1$2pr@sun20.ccd.bnl.gov> organization: jaguNET Access Services newsgroups: comp.sys.dec In article <4ejjs1$2pr@sun20.ccd.bnl.gov>, olchansk@a0.phy.bnl.gov (Konstantin Olchanski) wrote: >Folks- what is the endianess of the DEC Alpha machines? > >Let me try to describe my problem- > [snip] > >The problem is that all our data sets are written in the > big-endian format and the little-endian version > of our code cannot read them. > >I understand that it is possible to write a > "data converter" to covert our data between > little-endian and big-endian representations. > >This approach requires a fair amount of work > and has some drawbacks, such as slower programs > (if data is coverted on-the-fly) or increased > disk space usage (if we have to keep two versions > of the data- big-endian and little-endian). > [snip] > > > >Konstantin Olchanski, olchansk@b1.phy.bnl.gov Why not just write the few lines of code to swap bytes on read and write? If you're really dealing with large files, the programs are likely memory bound in which case the few extra logical ops to swap bytes should be essentially free. John -- John McNamara "I am not a number, I am a free man" jfm6@jaguNET.com -- No. 6