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: Arranging for -Os to imply -mpreferred-stack-boundary=2 on x86


On Wed, Oct 24, 2001 at 05:08:00PM -0400, Geert Bosch wrote:
> Yes, but without the alignment you'd have %ebp available as general
> register, you would not need to save/restore it and set it up.
> So, the cost of aligning the stack-pointer is one register and five 
> instructions. How do you end up with only one instruction?

Because we currently default to -fno-omit-frame-pointer for x86.
So we currently never have %ebp available as a general register.


r~


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