* BIG or LOW endian?
@ 2000-08-10 4:00 h0l0gRaM
2000-08-10 4:00 ` Serguei Patchkovskii
0 siblings, 1 reply; 12+ messages in thread
From: h0l0gRaM @ 2000-08-10 4:00 UTC (permalink / raw)
Now ,this is interesting.
Are Alphas big or low endian machines ?
When I run this perl script :
perl -e '
if(pack("S", 1) eq pack("n", 1)){
print "Big-endian\n";
}
else{
print "Little-endian\n";
}
I get Little-endian ,I supposed that Alphas are big-endian computers
like Sun Sparc's.
Also ,many program's autoconf configure script shows that Alpha is
low-endian.
Computer is Alpha XL300 ,21164(ev5)
Distro is RH 6.0 with some 6.2 updates.
--
Reading is thinking with someone else's head instead of one's own.
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: BIG or LOW endian? 2000-08-10 4:00 BIG or LOW endian? h0l0gRaM @ 2000-08-10 4:00 ` Serguei Patchkovskii 2000-08-10 4:00 ` Jeff Donsbach 0 siblings, 1 reply; 12+ messages in thread From: Serguei Patchkovskii @ 2000-08-10 4:00 UTC (permalink / raw) h0l0gRaM (hgm@saunalahti.fi) wrote: : Now ,this is interesting. : Are Alphas big or low endian machines ? Both. It is operating system-dependent. Linux, Tru64, and NT run Alphas in low-endian mode. Alphas used in big-iron Cray T3* series are running in big-endian mode. /Serge.P --- Home page: http://www.cobalt.chem.ucalgary.ca/ps/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-10 4:00 ` Serguei Patchkovskii @ 2000-08-10 4:00 ` Jeff Donsbach 2000-08-11 4:00 ` h0l0gRaM 0 siblings, 1 reply; 12+ messages in thread From: Jeff Donsbach @ 2000-08-10 4:00 UTC (permalink / raw) OpenVMS is also run as little endian. This choice is historical as all previous DEC hardware (Vax's, PDP-11's, etc) all ran as Little-Endian hardware. Jeff Donsbach Compaq Computer Corp Partner Engineering Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote in message news:8muki5$hlm$2@nserve1.acs.ucalgary.ca... > h0l0gRaM (hgm@saunalahti.fi) wrote: > : Now ,this is interesting. > : Are Alphas big or low endian machines ? > > Both. It is operating system-dependent. Linux, Tru64, and NT run > Alphas in low-endian mode. Alphas used in big-iron Cray T3* series > are running in big-endian mode. > > /Serge.P > > --- > Home page: http://www.cobalt.chem.ucalgary.ca/ps/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-10 4:00 ` Jeff Donsbach @ 2000-08-11 4:00 ` h0l0gRaM 2000-08-11 4:00 ` Tobias Ernst 0 siblings, 1 reply; 12+ messages in thread From: h0l0gRaM @ 2000-08-11 4:00 UTC (permalink / raw) Jeff Donsbach wrote: > > OpenVMS is also run as little endian. This choice is historical as all > previous DEC hardware (Vax's, PDP-11's, etc) all ran as Little-Endian > hardware. > So ,are Alphas moving to big endian ? Or are they staying in little endian ? -- If I knew what brand [of whiskey] he drinks, I would send a barrel or so to my other generals. -- Abraham Lincoln, on General Grant ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` h0l0gRaM @ 2000-08-11 4:00 ` Tobias Ernst 2000-08-11 4:00 ` Jeff Donsbach 2000-08-11 4:00 ` Carlos 0 siblings, 2 replies; 12+ messages in thread From: Tobias Ernst @ 2000-08-11 4:00 UTC (permalink / raw) Hallo h0l0gRaM! h> So ,are Alphas moving to big endian ? h> Or are they staying in little endian ? As nowadays there is no obvious advantage in being big endian, and switching to big endian (i.e. removing little endian mode) would mean probably a lot of changes in all supported operating systems on Alpha, I don't think they will switch to big endian any time soon. Of course, only Compaq knows ... but I think that Alpha CPUs will continue to support both modes, and operating systems will continue to use that mode that they use currently (namedly, little endian for the most common ones Tru64, OpenVMS, Linux, Free-, Open- and NetBSD). Supporting both little AND big endian is a compatibility issue that will probably remain forever in Alpha CPU's, just as the real mode will remain in mainstream Intel CPU's just about forever ... Viele Gruesse, Tobias ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` Tobias Ernst @ 2000-08-11 4:00 ` Jeff Donsbach 2000-08-11 4:00 ` Carlos 1 sibling, 0 replies; 12+ messages in thread From: Jeff Donsbach @ 2000-08-11 4:00 UTC (permalink / raw) Back before NT was popular and Sun, HP and SGI owned the workstation market, Digital used to get "beat up" by our customers and software partners for being different than the other majors. Funny how things change. Now, we're actually looked on favorably for being little endian, same as the Wintel world and Sun and HP are the ones being bitten over endianism! All Alpha's are capable of running in either big or little endian mode (though not both at the same time). This will probably continue as the Himalaya platform migrates from the Mips platform to Alpha; NSK is a big endian OS. Though don't hold me to that 'cause I'm not involved in that migration in any way. Regards, Jeff Donsbach Compaq Computer Partner Engineering Tobias Ernst <tobi@bland.fido.de> wrote in message news:MSGID_242=3A7600=2F1=40fido.de_3994807d@Fido.DE... > Hallo h0l0gRaM! > > h> So ,are Alphas moving to big endian ? > h> Or are they staying in little endian ? > > As nowadays there is no obvious advantage in being big endian, and > switching to big endian (i.e. removing little endian mode) would mean > probably a lot of changes in all supported operating systems on Alpha, > I don't think they will switch to big endian any time soon. Of course, > only Compaq knows ... but I think that Alpha CPUs will continue to > support both modes, and operating systems will continue to use that > mode that they use currently (namedly, little endian for the most > common ones Tru64, OpenVMS, Linux, Free-, Open- and NetBSD). Supporting > both little AND big endian is a compatibility issue that will probably > remain forever in Alpha CPU's, just as the real mode will remain in > mainstream Intel CPU's just about forever ... > > Viele Gruesse, > Tobias ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` Tobias Ernst 2000-08-11 4:00 ` Jeff Donsbach @ 2000-08-11 4:00 ` Carlos 2000-08-12 4:00 ` Serguei Patchkovskii ` (2 more replies) 1 sibling, 3 replies; 12+ messages in thread From: Carlos @ 2000-08-11 4:00 UTC (permalink / raw) Pardon for the ignorance, but: could anyone explain why little/big endian is better? An why should I be concerned with it? Thanks!!! Carlos carlos1w@excite.com In article <MSGID_242=3A7600=2F1=40fido.de_3994807d@Fido.DE>, Tobias Ernst <tobi@bland.fido.de> wrote: >Hallo h0l0gRaM! > > h> So ,are Alphas moving to big endian ? > h> Or are they staying in little endian ? > >As nowadays there is no obvious advantage in being big endian, and >switching to big endian (i.e. removing little endian mode) would mean >probably a lot of changes in all supported operating systems on Alpha, >I don't think they will switch to big endian any time soon. Of course, >only Compaq knows ... but I think that Alpha CPUs will continue to >support both modes, and operating systems will continue to use that >mode that they use currently (namedly, little endian for the most >common ones Tru64, OpenVMS, Linux, Free-, Open- and NetBSD). Supporting >both little AND big endian is a compatibility issue that will probably >remain forever in Alpha CPU's, just as the real mode will remain in >mainstream Intel CPU's just about forever ... > >Viele Gruesse, >Tobias ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` Carlos @ 2000-08-12 4:00 ` Serguei Patchkovskii 2000-08-12 4:00 ` Carlos 2000-08-12 4:00 ` Jeff Sturm 2000-08-12 4:00 ` Christopher Browne 2 siblings, 1 reply; 12+ messages in thread From: Serguei Patchkovskii @ 2000-08-12 4:00 UTC (permalink / raw) Carlos (carlos@no_spam.no_spam.no_spam) wrote: : Pardon for the ignorance, but: could anyone explain why little/big endian : is better? An why should I be concerned with it? If you do not write your own programs, you shouldn't. Even if you write your own programs, but avoid using binary files for data exchange, and do not rely on any particular layout of your data structures beyond that is guaranteed by the languages you are using, you still shouldn't. On the other hand, if you do either one of these things (and, usually, you'd be doing either none, of both, of them ;-)), you'd better know and care about endianness ... Cheers, /Serge.P --- Home page: http://www.cobalt.chem.ucalgary.ca/ps/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-12 4:00 ` Serguei Patchkovskii @ 2000-08-12 4:00 ` Carlos 2000-08-12 4:00 ` Ronald Bruck 0 siblings, 1 reply; 12+ messages in thread From: Carlos @ 2000-08-12 4:00 UTC (permalink / raw) >If you do not write your own programs, you shouldn't. Even if you write >your own programs, but avoid using binary files for data exchange, and do I see, I have always used simple ascii files to store the data from number crunching. In the past it allowed to inspect the data by opening the file on emacs and see whether it made sense. Now, of course the data is too big to simply "see" anything, but gnuplot et al. can still do a nice job of quickly visualizing what I got out... Data exchange has, therefore, never been a problem when moving from vaxes to mips to sgis to suns to alphas to pcs, etc. (and of course, I liberally used gzip to compress the data...) Thank you all for the information! I will try to keep avoiding the issue ;-) Carlos ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-12 4:00 ` Carlos @ 2000-08-12 4:00 ` Ronald Bruck 0 siblings, 0 replies; 12+ messages in thread From: Ronald Bruck @ 2000-08-12 4:00 UTC (permalink / raw) In article <8n4r1o$4c5$1@piazzolla.physics.missouri.edu>, carlos@no_spam.no_spam.no_spam (Carlos) wrote: :>If you do not write your own programs, you shouldn't. Even if you write :>your own programs, but avoid using binary files for data exchange, and do : :I see, I have always used simple ascii files to store the data from number :crunching. In the past it allowed to inspect the data by opening the file :on emacs and see whether it made sense. Now, of course the data is too :big to simply "see" anything, but gnuplot et al. can still do a nice job :of quickly visualizing what I got out... Data exchange has, therefore, :never been a problem when moving from vaxes to mips to sgis to suns to :alphas to pcs, etc. (and of course, I liberally used gzip to compress the :data...) : :Thank you all for the information! I will try to keep avoiding the issue :;-) : :Carlos Well, that's fine for small datasets. But astronomers, geologists, etc., who acquire dozens of gigabytes of data A DAY, can't afford to save it as text. And yes, it's painful. I remember a solar astronomer in my university who had the awful job of converting big-endian floating-point data to little-endian (or was it the other way 'round?). Besides, there are NCSA formats which obviate the problem of cross-platform use. And the code is free for the taking. --Ron Bruck -- Due to University fiscal constraints, .sigs may not be exceed one line. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` Carlos 2000-08-12 4:00 ` Serguei Patchkovskii @ 2000-08-12 4:00 ` Jeff Sturm 2000-08-12 4:00 ` Christopher Browne 2 siblings, 0 replies; 12+ messages in thread From: Jeff Sturm @ 2000-08-12 4:00 UTC (permalink / raw) Carlos wrote: > Pardon for the ignorance, but: could anyone explain why little/big endian > is better? An why should I be concerned with it? There is no "better" endianness... they are just different. Think of it like an automobile's electrical system. Most are negative ground, some were positive ground (but I think few are left, if any). They both work equally well, but you must be aware of the difference if e.g. you jumpstart one from the other. Jeff ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BIG or LOW endian? 2000-08-11 4:00 ` Carlos 2000-08-12 4:00 ` Serguei Patchkovskii 2000-08-12 4:00 ` Jeff Sturm @ 2000-08-12 4:00 ` Christopher Browne 2 siblings, 0 replies; 12+ messages in thread From: Christopher Browne @ 2000-08-12 4:00 UTC (permalink / raw) Centuries ago, Nostradamus foresaw a time when Carlos would say: >Pardon for the ignorance, but: could anyone explain why little/big endian >is better? An why should I be concerned with it? Both directions have some advantages and disadvantages; the classic paper on this was presented in Computer Language in the 1980s, and essentially compared it to the Jonathan Swift story of the people that had a war over which end of a boiled egg should be placed "on top." You should probably be concerned with the issue insofar as you need to make sure your byte ordering of data is compatible with the systems you plan to use that data on. -- cbbrowne@hex.net - <http://www.hex.net/~cbbrowne/> "If you want to talk with some experts about something, go to the bar where they hang out, buy a round of beers, and they'll surely talk your ear off, leaving you wiser than before. If you, a stranger, show up at the bar, walk up to the table, and ask them to fax you a position paper, they'll tell you to call their office in the morning and ask for a rate sheet." -- Miguel Cruz ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2000-08-12 4:00 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-08-10 4:00 BIG or LOW endian? h0l0gRaM 2000-08-10 4:00 ` Serguei Patchkovskii 2000-08-10 4:00 ` Jeff Donsbach 2000-08-11 4:00 ` h0l0gRaM 2000-08-11 4:00 ` Tobias Ernst 2000-08-11 4:00 ` Jeff Donsbach 2000-08-11 4:00 ` Carlos 2000-08-12 4:00 ` Serguei Patchkovskii 2000-08-12 4:00 ` Carlos 2000-08-12 4:00 ` Ronald Bruck 2000-08-12 4:00 ` Jeff Sturm 2000-08-12 4:00 ` Christopher Browne
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox