stepanov on i686-pc-linux-gnu
Andreas Schwab
schwab@suse.de
Mon May 28 00:29:00 GMT 2001
Joe Buck <jbuck@racerx.synopsys.com> writes:
|> > On Fri, May 25, 2001 at 06:24:39PM -0700, Joe Buck wrote:
|> > > .L262:
|> > > faddl (%eax)
|> > > leal 8(%eax), %edx
|> > > cmpl %ecx, %edx
|> > > movl %edx, %eax
|> > > jne .L262
|> > > movl %edx, 8(%ebp)
|> > >
|> > > Ouch! The iterator is being retrieved and stored to memory.
|> >
|> > Well, sorta. That last move is outside the loop.
|>
|> Sigh. I'm so used to looking at Sparc assembly with the delayed
|> branch.
|>
|> Nevertheless, there are two memory accesses in the loop
No, there is only one. 'leal' only calculates the effective address,
without any memory access.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
More information about the Gcc
mailing list