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: Converting MSVC to intel-style gcc inline assembly


Andi Kleen wrote:
> > Andi Kleen wrote:
> >> it's not possible to clobber %ebp
> >
> > I seem to recall that was true even with -fno-frame-pointer: you'd get
> > silently incorrect code, even though GCC had no special uses for %ebp
> > in that mode.
> >
> > Is that still so?
> 
> Yes. The only way to clobber ebp is to push/pop ebp manually,
> but then you have to be careful to not get any direct stack references
> from gcc as arguments.

In -fno-frame-pointer mode, there are no direct stack references
using %ebp... or are there?

-- Jamie



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