From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199608011619.JAA06835@panda.azstarnet.com> Date: Thu, 1 Aug 1996 09:19:19 -0700 From: David Mosberger-Tang Subject: Re: scheduled memcpy >>>>> On Thu, 1 Aug 1996 10:52:42 +0300 (EET DST), Linus Torvalds said: Linus> On Tue, 30 Jul 1996, Richard Henderson wrote: >> While waiting for glibc to build today, I was playing with the >> memcpy Martin Ostermann posted earlier this month. Following is >> a more-or-less directly translated version of same that has been >> hand-scheduled for the ev5. Linus> Umm. This does a load from the destination for the first Linus> quad-word, even if the source and destination are both Linus> aligned. That's ok if the destination is cached, but it's Linus> _horrible_ if the destination isn't cached and we're doing a Linus> small structure copy of just one or two quadwords. Another thing to watch out for is write-after-write (WAW) conflicts. At least on the ev4, this is very slow. Not something that normally occurs, but if you use the Arch Ref Manual's recommended sequence to store an unaligned quantity to an _aligned_ address, you do end up with a WAW conflict (it works correctly, but it's quite slow). It's not a problem with the memcpy code, but just something to watch out for. Hmmh, did anybody write that book "Optimizing Alpha/RISC Code" yet? ;-) --david -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null