Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Dec 2002 12:38:13 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        kai ouyang <oykai@msn.com>
Cc:        hackers@FreeBSD.org
Subject:   RE: One GNU ASM syntax problem
Message-ID:  <XFMail.20021206123813.jhb@FreeBSD.org>
In-Reply-To: <F73kEPF3cMnA0VYqMhm0001d013@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 06-Dec-2002 kai ouyang wrote:
> Hi,everybody,
> 
>   I have one question about GNU ASM syntax. 
> As I know:
> __asm __volatile(
>    "instructions"
>    :output
>    :input
>    :exception);
> In Linux, the restriction of output are "=m","=a", etc.
> But I found in FreeBSD, there are "=m" and "+m".
> I do not know the difference between "+" and "=". why?
> Thank you!

Check the info pages for gcc.  = conotes an output-only operand
and + conotes an input and output operand.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021206123813.jhb>