From owner-freebsd-hackers Thu Dec 5 22: 2: 0 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 8398937B401 for ; Thu, 5 Dec 2002 22:01:59 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49FED43EBE for ; Thu, 5 Dec 2002 22:01:59 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 3003B2A7EA; Thu, 5 Dec 2002 22:01:59 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "kai ouyang" Cc: hackers@FreeBSD.org Subject: Re: One GNU ASM syntax problem In-Reply-To: Content-Transfer-Encoding: 8bit Date: Thu, 05 Dec 2002 22:01:59 -0800 From: Peter Wemm Message-Id: <20021206060159.3003B2A7EA@canning.wemm.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 "kai ouyang" wrote: > >I do not know the difference between "+" and "=". why? > Thank you, I got it from 'info gcc'. > It is the reason that "Extended asm supports input-output or read-write > operands. Use the constraint character `+' to indicate such an operand > and list it with the output operands.". Also be aware that different versions of gcc treat this differently. We use gcc-2.95 on FreeBSD 4.x and gcc-3.2.1 on FreeBSD 5.x. Those versions are much more sensitive and have stricter requirements than gcc-2.8 and earlier. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message