little epilogue optimization

Jeffrey A Law law@cygnus.com
Sun Jul 5 23:39:00 GMT 1998


  In message < r2vhpgt74x.fsf@happy.cygnus.com >you write:
  > Richard Henderson <rth@cygnus.com> writes:
  > 
  > > He explained to me, while he was asking how it could be done,
  > > that the important fact is that pop can pair with ret on the
  > > pentia, where an add to esp cannot.
Cool.

  > Plus: the generated code is always smaller.
  > 
  > 	add $xx, %esp		3 bytes
  > 
  > 	popl %ecx		1 byte
  > 	popl %ecx; popl %edx	2 bytes
Icing on the cake :-)

I'll install your latest revision of this patch shortly if you haven't
already beaten me to it.

jeff



More information about the Gcc-patches mailing list