Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jan 2002 14:36:31 -0700
From:      Ian <freebsd@damnhippie.dyndns.org>
To:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Tell gcc I have a i686
Message-ID:  <B85F62EF.8F03%freebsd@damnhippie.dyndns.org>
In-Reply-To: <XFMail.020107102642.jhb@FreeBSD.org>

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

>>> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B85F62EF.8F03%freebsd>