From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c9824e214e2c21c X-Google-Attributes: gid1164f8,public From: davidm@azstarnet.com (David Mosberger-Tang) Subject: Re: ALPHA SLOWER THAN PENTIUM !!!! Date: 1995/12/14 Message-ID: #1/1 X-Deja-AN: 121838142 sender: davidm@koala.azstarnet.com references: <4a72kn$bel@usenet.pa.dec.com> organization: Arizona Daily Star's StarNet newsgroups: comp.sys.dec >>>>> On Thu, 14 Dec 1995 19:22:15 GMT, danpop@mail.cern.ch (Dan Pop) said: In article danpop@mail.cern.ch (Dan Pop) writes: Dan> In <4angp1$bp5@topaz.sensor.com> ron@topaz.sensor.com (Ron Dan> Natalie) writes: >> Dan Pop (danpop@mail.cern.ch) wrote: : >> grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes: >> >> : >I think there's been some work done (in part a paper by Mogul >> : >et al) showing that 64-bit vs. 32bit doesn't hurt you that >> : >much unless you're doing very pointer-intensive stuff (e.g., >> : >lisp). >> >> : How many machine code instructions are needed to load a 64-bit >> : address in a register? >> >> Just 1. Dan> Wow, that's great! Stuffing a 64-bit address in a 32-bit Dan> machine code instruction is a great achievement. Dunno, but my Alpha compilers/assemblers all generate: ldq reg,offset(gp) to load (non-trivial) 64 bit constants. By my count, the answer is 1 indeed (not 42!). Now we might want to start arguing about counting the 8 bytes of literal address space each such constant occupies or how many instructions of overhead there are to maintain the global pointer register, but I'd suggest reading Mogul's paper instead and/or running an identically equipped Linux box next to a DEC Unix box... :-) --david -- David Mosberger-Tang; Dept. of CS; The University of Arizona; Tucson, AZ 85721 davidm@CS.Arizona.Edu davidm@AZStarNet.Com http://www.AZStarNet.com/~davidm