This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: gcc restores wrong stack pointer value?


On 03/03/2011 12:04 PM, DJ Delorie wrote:
> Doh, I suppose what I want is $sp, no, $fp, but that's where I'm
> storing it, so I suppose I could just set $sp from $fp+const, yes?

Yes.  That's what I was trying to describe with that mova sequence.

> It's an extra "restore sp from fp" but only when the frame size is
> variable.

Exactly.


r~


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