This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More i386 architectures?


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]