From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa66c,7dbbc5a382c050e X-Google-Attributes: gidfa66c,public X-Google-Thread: f7344,7dbbc5a382c050e X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,7dbbc5a382c050e X-Google-Attributes: gidf6134,public X-Google-Thread: fa528,7dbbc5a382c050e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-09-09 00:41:50 PST Date: Sun, 09 Sep 2001 09:35:07 +0200 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.tandem,comp.unix.tru64 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Organization: Home Message-ID: Subject: Re: RIP Bill Gates From: Paul Sture Reply-To: paul@sture.ch References: <6Pbl7.8297$Op6.1683398@typhoon1.gnilink.net> <9n3t8t$b6e$1@pyrite.mv.net> <9ndgae$m9u@web.nmti.com> <3B9AC8F5.50E57870@videotron.ca> NNTP-Posting-Host: 212.254.82.136 X-Trace: news.datacomm.ch 1000021296 212.254.82.136 (9 Sep 2001 09:41:36 +0200) Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsrouter.chello.at!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newsmaster-01.atnet.at!atnet.at!news.datacomm.ch Xref: archiver1.google.com comp.org.decus:1620 comp.os.vms:43616 comp.sys.tandem:1513 comp.unix.tru64:4755 In article <3B9AC8F5.50E57870@videotron.ca>, JF Mezei wrote: > Peter da Silva wrote: > > > ISTR IA64 is little-endian. > > OK, reality check time: > > Does it really matter if an OS is big or little endian ? I realise that you > need to know in order to convert data you receive from other machines, but > other than that, does it matter ? > > And at the OS level, would it be a huge task to recompile Tru64 to run on > Alpha in big endian mode ? > (eg: are there a LOT of assumptions in the OS about the endianness of the > platform ? or are they handled by the compiler/cpu ?) > Dunno much about C and Unix, but from the VAX calling standard point of view: When passing integers to subroutines by reference (the default in VMS), the endianness is all important. If you want to pass an Integer:4 to a routine expecting an Integer:2 or Integer:1, it works fine because the least significant byte is in position 0 (which is the address passed). Indeed, COBOL doesn't understand Integer:1, so the only sensible way is to use an Integer:2 (PIC S9(4) COMP in COBOLese) when an Integer:1 is expected in the called routine. Changing endianness (is that a real word?) would create an awful lot of work in converting such programs. Of course, this is speaking from a VMS angle. ___ Paul Sture Switzerland