Inline ASM and stack/base pointer

Daniel Mierswa impulze@impulze.org
Thu Jun 9 20:26:00 GMT 2011


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.
I assume I should use "m" as constraint, right? If so, that didn't do
the trick, the generated assembly still contains 0xbc(%%esp) where it
should use %%ebp.

-- 
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



More information about the Gcc-help mailing list