How to tell a v8 processor from a v7 processor.

How to tell a v8 processor from a v7 processor.

Post by Larry Williams » Thu, 08 Dec 1994 06:20:23



SunPro cc and gcc have an option that will generate code optimized for
the v8 sparc processor. The gcc option is -mv8, the cc option is
something like -xcg92.

How can a process tell which type of processor it is running on.

It is one thing to say look at the label, is it sparc 2, or ipc, or
sparc 10 or sparc 20?

But if a process is going to make some assumptions, what can it test?

Larry

 
 
 

How to tell a v8 processor from a v7 processor.

Post by Casper H.S. D » Thu, 08 Dec 1994 06:49:38



>SunPro cc and gcc have an option that will generate code optimized for
>the v8 sparc processor. The gcc option is -mv8, the cc option is
>something like -xcg92.
>How can a process tell which type of processor it is running on.

The SunPRO compilers accept a switch -native which does the right thing.

Other than that, the only way to tell is from the processor type you have,
all missing instructions are emulated in the kernel.

V7:  sun4 (4/[234]00), sun4c (IPC, IPX, ELC, SLC, SS1, SS1+, SS2)
but also Ross CPU sun4m.  SuperSPARC is V8, as is the MicroSPARC.
Not sure about hyperSPARC, but I think it's V8.

Casper

 
 
 

How to tell a v8 processor from a v7 processor.

Post by Larry Williams » Sat, 10 Dec 1994 22:44:34


Thank you. I received a number of email responses, but no one ever
itemized just which processors were V7 and which were V8. I think
maybe I did not ask for this explicitly, but I am glad you saw my
need.

Kind regards,

Larry


Quote:

> The SunPRO compilers accept a switch -native which does the right thing.

> Other than that, the only way to tell is from the processor type you have,
> all missing instructions are emulated in the kernel.

> V7:  sun4 (4/[234]00), sun4c (IPC, IPX, ELC, SLC, SS1, SS1+, SS2)
> but also Ross CPU sun4m.  SuperSPARC is V8, as is the MicroSPARC.
> Not sure about hyperSPARC, but I think it's V8.

 
 
 

How to tell a v8 processor from a v7 processor.

Post by Ty Ada » Sun, 11 Dec 1994 05:33:20


: How can a process tell which type of processor it is running on.

Use "fpversion".

Ty Adams