Specifies target processor for use by the optimizer.
The –xchip option specifies timing properties by specifying the target processor. This option affects:
The ordering of instructions—that is, scheduling
The way the compiler uses branches
The instructions to use in cases where semantically equivalent alternatives are available
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.
c must be one of the following values.
Table A–28 The -xchip Values
Platform |
Value |
Optimize Using Timing Properties for |
---|---|---|
SPARC |
generic |
good performance on most SPARC processors |
native |
good performance on the system on which the compiler is running |
|
old |
processors earlier than the SuperSPARC processor |
|
sparc64vi |
SPARC64 VI processor |
|
sparc64vii |
SPARC64 VII processor |
|
super |
SuperSPARC processor |
|
super2 |
SuperSPARC II processor |
|
micro |
microSPARC processor |
|
micro2 |
microSPARC II processor |
|
hyper |
hyperSPARC processor |
|
hyper2 |
hyperSPARC II processor |
|
powerup |
the Weitek PowerUp processor |
|
ultra |
UltraSPARC processor |
|
ultra2 |
UltraSPARC II processor |
|
ultra2e |
UltraSPARC IIe processor |
|
ultra2i |
UltraSPARC IIi processor |
|
ultra3 |
UltraSPARC III processor |
|
ultra3cu |
UltraSPARC III Cu processor |
|
ultra3i |
UltraSparc IIIi processors. |
|
ultra4 |
UltraSPARC IV processors. |
|
ultra4plus |
UltraSPARC IVplus processor. |
|
ultraT1 |
UltraSPARC T1 processor. |
|
ultraT2 |
UltraSPARC T2 processor. |
|
ultraT2plus |
UltraSPARC T2+ processor. |
|
x86 |
generic |
most x86 processors |
core2 |
Intel Core2 processor |
|
nehalem |
Intel Nehalem processor |
|
opteron |
AMD Opteron processor |
|
penryn |
Intel Penryn processor |
|
pentium |
Intel Pentium processor |
|
pentium_pro |
Intel Pentium Pro processor |
|
pentium3 |
Intel Pentium 3 style processor |
|
pentium4 |
Intel Pentium 4 style processor |
|
amdfam10 |
AMD AMDFAM10 processor |
On most processors, generic is the default value that directs the compiler to use the best timing properties for good performance without major performance degradation on any of the processors.