This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
clobber list in inline assembly for calls
- From: Daniel Mierswa <impulze at impulze dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 08 Jan 2011 01:31:27 +0100
- Subject: clobber list in inline assembly for calls
Good day,
I was wondering which registers I have to clobber or which special
strings I have to put into the clobber list if all I'm going to do is:
asm("call %0;" ::"m"(addr_of_myfunc));
As I can't tell what the function is doing I may have to clobber all
registers or am I wrong?
I had in mind to clobber "cc" plus "eax", "ecx", "edx" which are by the
i386 ABI not preserved for the caller.
I couldn't find any relevant documentation about this in several
How-Tos. Thanks in advance for any reponses.
--
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