Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
[parent not found: <m0ul9Fj-0001uTC@atheist.tamu.edu>]
[parent not found: <m0ulGrr-0001uLC@atheist.tamu.edu>]
[parent not found: <Pine.LNX.3.91.960801111059.10002F-100000@linux.cs.Helsinki.FI>]
* Re: scheduled memcpy
@ 1996-08-01 16:19 David Mosberger-Tang
  0 siblings, 0 replies; 10+ messages in thread
From: David Mosberger-Tang @ 1996-08-01 16:19 UTC (permalink / raw)


>>>>> On Thu, 1 Aug 1996 10:52:42 +0300 (EET DST), Linus Torvalds <torvalds@cs.Helsinki.FI> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1996-08-02  7:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199607311356.PAA16694@oscar.comnets.rwth-aachen.de>
1996-07-31 19:40 ` scheduled memcpy Harald Koenig
1996-07-31 19:40 ` Harald Koenig
1996-07-31 19:40 ` Harald Koenig
1996-07-31 19:40 ` Harald Koenig
     [not found] <m0ul9Fj-0001uTC@atheist.tamu.edu>
1996-08-01  7:52 ` Linus Torvalds
     [not found] <m0ulGrr-0001uLC@atheist.tamu.edu>
1996-08-01  8:19 ` Linus Torvalds
     [not found] <Pine.LNX.3.91.960801111059.10002F-100000@linux.cs.Helsinki.FI>
1996-08-01 14:32 ` Richard Henderson
1996-08-02  7:05   ` Linus Torvalds
1996-08-02  7:16   ` Linus Torvalds
1996-08-01 16:19 David Mosberger-Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox