stepanov on i686-pc-linux-gnu
Joe Buck
jbuck@racerx.synopsys.com
Sun May 27 19:38:00 GMT 2001
> 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, and only
one is needed. In principle, all the Stepanov tests should generate
equivalently fast code.
More information about the Gcc
mailing list