Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jan 2002 10:26:42 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        freebsd-hackers@FreeBSD.ORG, "Matthew D. Fuller" <fullermd@over-yonder.net>
Subject:   Re: Tell gcc I have a i686
Message-ID:  <XFMail.020107102642.jhb@FreeBSD.org>
In-Reply-To: <3C37B395.2558D84D@math.missouri.edu>

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

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 <jhb@FreeBSD.org>  <><  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020107102642.jhb>