This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Please help. extended asm syntax unclearly documented.
- From: Richard Henderson <rth at redhat dot com>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 16 Dec 2002 20:55:35 +0000
- Subject: Re: Please help. extended asm syntax unclearly documented.
- References: <20021216125124.GA16237@alinoe.com>
On Mon, Dec 16, 2002 at 01:51:24PM +0100, Carlo Wood wrote:
> The use of 'rep' garantees that after this assembly code
> %ecx equals to 0. But how to tell gcc that?
You can't.
> How can I tell gcc that only that specific range is
> clobbered?
"=m"(structure).
Using gcc's variable sized structure extensions, you can
get something sized appropriately, but that's not going to
do any good. If the object is not fixed sized, you might
as well just use the "memory" clobber -- it's all the same
in the end anyway.
> It seems that they forgot to add "cc", and I don't understand
For backward compatibility, the x86 backend automatically
adds this.
> why they added the '&' in "=&c" and "=&D" in this case :(.
It is unnecessary.
r~