Re: Inline ASM and stack/base pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09.06.2011 17:49, Ian Lance Taylor wrote:
> Add "%esp" to your clobber list.  That should force the compiler to pass
> any stack variables using an offset from %ebp.

Ok it does seem to have an effect after all, as long as I don't compile
it with -O2, as soon as -O2 is passed, it uses esp instead of ebp and
does not even build up a base pointer at all in the generated assembly.

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux