Sun Studio 12: C User's Guide

B.2.79 -xchip[=c]

Specifies the target processor for use by the optimizer.

c must be one of the following: generic, old, super, super2, micro, micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2e, ultra2i, ultra3, ultra3cu, pentium, pentium_pro.

Although this option can be used alone, it is part of the expansion of the-xtarget option; its primary use is to override a value supplied by the-xtarget option.

This option specifies timing properties by specifying the target processor. Some effects are:

The following table lists the -xchip values for SPARC platforms:

Table B–19 The SPARC -xchip Flags

Flag  

Meaning  

generic

Use timing properties for good performance on most SPARC architectures. 

This is the default value that directs the compiler to use the best timing properties for good performance on most processors, without major performance degradation on any of them. 

native 

Set the parameters for the best performance on the host environment. 

old

Uses timing properties of pre-SuperSPARC processors. 

sparc64vi

Optimize for the SPARC64 VI processor. 

super

Uses timing properties of the SuperSPARC processors. 

super2

Uses timing properties of the SuperSPARC II processors. 

micro

Uses timing properties of the microSPARC processors. 

micro2

Uses timing properties of the microSPARC II processors. 

hyper

Uses timing properties of the hyperSPARC processors. 

hyper2

Uses timing properties of the hyperSPARC II processors. 

powerup

Uses timing properties of the Weitek PowerUp processors. 

ultra

Uses timing properties of the UltraSPARC processors. 

ultra2

Uses timing properties of the UltraSPARC II processors. 

ultra2e

Uses timing properties of the UltraSPARC IIe processors. 

ultra2i

Uses timing properties of the UltraSPARC IIi processors. 

ultra3

Uses timing properties of the UltraSPARC III processors. 

ultra3cu

Uses timing properties of the UltraSPARC III Cu processors. 

ultra3i

Uses the timing properties of the UltraSPARC IIIi processors. 

ultra4

Uses timing properties of the UltraSPARC IV processors. 

ultra4plus

Uses the timing properties of the UltraSPARC IVplus processor. 

ultraT1

Uses the timing properties of the UltraSPARC T1 processor. 

ultraT2

Uses the timing properties of the UltraSPARC T2 processor. 

The following table lists the -xchip values for the x86 platforms:

Table B–20 The x86 -xchip Flags

Flag  

Meaning  

generic

Use timing properties for good performance on most x86 architectures. 

This is the default value that directs the compiler to use the best timing properties for good performance on most processors, without major performance degradation on any of them. 

native

Set the parameters for the best performance on the host environment. 

pentium

Uses timing properties of the x86 pentium architecture 

pentium_pro

Uses timing properties of the x86 pentium_pro architecture 

pentium3

Uses the timing properties of the x86 Pentium 3 architecture. 

pentium4

Uses the timing properties of the x86 Pentium 4 architecture.