From owner-freebsd-hackers Mon Jan 7 10:27:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id B367C37B41B for ; Mon, 7 Jan 2002 10:27:13 -0800 (PST) Received: (qmail 9559 invoked from network); 7 Jan 2002 18:27:13 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Jan 2002 18:27:13 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3C37B395.2558D84D@math.missouri.edu> Date: Mon, 07 Jan 2002 10:26:42 -0800 (PST) From: John Baldwin To: Stephen Montgomery-Smith Subject: Re: Tell gcc I have a i686 Cc: freebsd-hackers@FreeBSD.ORG, "Matthew D. Fuller" 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-Jan-02 Stephen Montgomery-Smith wrote: > "Matthew D. Fuller" wrote: >> >> On Fri, Jan 04, 2002 at 12:02:03PM -0600 I heard the voice of >> Stephen Montgomery-Smith, and lo! it spake thus: >> > I want to create a Makefile for a C program that includes some Pentium >> > II specific inline assembler code. How do I tell the compiler whether >> > we are compiling on a i686? >> >> Dunno, how well will your Pentium II specific inline assembler code run >> on my Pentium Pro? >> > > You know, I have no idea. It is someone elses code. These are the > instructions. Can anyone tell me? > > "movl 32(%0),%1\n" > "adcl %1,32(%0)\n" > > Also, from this discussion, what I have decided to do is provide it as > an option for the user to add by editing the Makefile - not to do it > automatically. These instructions are 386 instructions. What we need to see are the contraints (the stuff after the actual instructions with colons in them) to see if it is somehow using Pentium Pro+ specific registers. And actually, just for the record, a PPro is a 686. :) It claims to be family 6 via cpuid at least. -- 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