From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114669,591ad700381e277b X-Google-Attributes: gid114669,public X-Google-Thread: 1164f8,591ad700381e277b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,591ad700381e277b X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-06-01 05:15:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!feeder.via.net!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.az.home.com.POSTED!not-for-mail Message-ID: <3B1786C4.71BE2DA5@mcmail.maricopa.edu> From: Carl Nelson Organization: Mesa Community College X-Mailer: Mozilla 4.7C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.arch,comp.sys.super,comp.sys.dec Subject: Re: Historical Question on Alpha 21064 References: <9ejbp0$iom$1@ausnews.austin.ibm.com> <3B0D56B1.A91BE4A1@sgi.com> <9ejpfu$l02$1@ausnews.austin.ibm.com> <9ek454$qac$1@ausnews.austin.ibm.com> <3B12640D.C4DC8EE9@austin.rr.com> <3B11DC3F.469BC299@jetnet.ab.ca> Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Date: Fri, 01 Jun 2001 12:12:52 GMT NNTP-Posting-Host: 24.1.226.129 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.az.home.com 991397572 24.1.226.129 (Fri, 01 Jun 2001 05:12:52 PDT) NNTP-Posting-Date: Fri, 01 Jun 2001 05:12:52 PDT Xref: archiver1.google.com comp.arch:10950 comp.sys.super:1659 comp.sys.dec:4280 Ben Franchuk wrote: > John McCalpin wrote: > > > OK, so in a particularly contrived example you think that the write > > allocate can cost a factor of four, or perhaps five if the bus loses > > an additional cycle on the turnaround. I do have to wonder what sort > > of application only writes data and never reads anything from memory.... > > You do how ever often fill a block of memory with a constant. > > / clear video buffer > mov a,#SPACE > mov x,#video > mov c,#80*24 > repeat c: mov.b x++,a > > -- > "We do not inherit our time on this planet from our parents... > We borrow it from our children." > "Luna family of Octal Computers" http://www.jetnet.ab.ca/users/bfranchuk > Updated - Now with schematics. Hmmm. Wouldn't a decent optimizing compiler turn that sequence into something like: load register x with 2020202020202020h (Eight space characters) load register y with 1920 (80 * 24) load register z with base address of video loop: store x at z (full 64 bit store) increment z by 8 decrement y by 8 branch to loop if y not zero This does assume that the base address of the array is aligned. If not, there is a preamble and a postamble that would have to do some cleanup, but you'd only have (at most) two out of 240 being fragments of full references. Also, realistically, there would be some loop unrolling to boot. It is also my understanding, from a general perusal of the alpha architecture handbook & compiler design guideline handbook that if you have a partial word to store that it is best to load the full word, mask off the portions you are modifying, OR in the modified bytes and write the full word back out again. IIRC there are alignment instructions particularly for this purpose, although I may be thinking of instructions for unaligned load & stitch.