From owner-freebsd-hackers Mon Jan 7 13:36:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from damnhippie.dyndns.org (12-253-177-2.client.attbi.com [12.253.177.2]) by hub.freebsd.org (Postfix) with ESMTP id B012C37B405 for ; Mon, 7 Jan 2002 13:36:32 -0800 (PST) Received: from [172.22.42.2] (freelove.hippie.lan [172.22.42.2]) by damnhippie.dyndns.org (8.11.6/8.11.1) with ESMTP id g07LaWu02582 for ; Mon, 7 Jan 2002 14:36:32 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Mon, 07 Jan 2002 14:36:31 -0700 Subject: Re: Tell gcc I have a i686 From: Ian To: freebsd-hackers Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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 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? > > [lots of snippage] Did this original question ever get answered? I think what you need is just -mcpu=i686 on the (g)cc command line. Or, given that other discussion seemed to indicate that a 686 isn't needed for these instructions, -mcpu=pentiumpro should do it. If there's any chance the code needs to run on older CPUs, go for the lower setting, as I believe this option affects the overall codegen and optimization. -- Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message