This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Inline ASM and stack/base pointer
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