This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: little epilogue optimization


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]