From owner-freebsd-hackers Fri Dec 6 9:38:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23D8E37B401 for ; Fri, 6 Dec 2002 09:38:10 -0800 (PST) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6B3543ECF for ; Fri, 6 Dec 2002 09:38:09 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 15576 invoked from network); 6 Dec 2002 17:38:13 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 6 Dec 2002 17:38:13 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gB6Hc7uH048725; Fri, 6 Dec 2002 12:38:07 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 06 Dec 2002 12:38:13 -0500 (EST) From: John Baldwin To: kai ouyang Subject: RE: One GNU ASM syntax problem Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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