This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: More i386 architectures?
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: More i386 architectures?
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 13 Nov 2001 12:56:55 -0800
- Cc: binutils at sources dot redhat dot com
- References: <3BEDD545.9000302@cygnus.com>
On Sat, Nov 10, 2001 at 08:32:53PM -0500, Andrew Cagney wrote:
> As part of this, GDB uses BFD's archures to identify ISA variants.
> Unfortunatly, looking at the i386, things are pretty thin on the ground
> - only i8086 and i386 are present.
>
> Does anyone object to me padding this out with (at a guess):
>
> ..._i386sx
> ..._i386_p1
> ..._i386_p1_mmx
> ..._i386_p2
> ..._i386_p3
> ..._i386_p4
That's going to be intractable. You'd be much better off using
the CPUID flags that identify the set of ISA extensions that the
cpu supports.
> On a related matter, is there anything in an executable indicating which
> architecture an i386 binary belongs?
No, and even if there were it wouldn't be reliable. Most commercial
software has code in the binary to support all of mmx/sse/3dnow and
detects which bit it ought to run.
r~