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 for Using Timing Properties |
---|---|---|
SPARC |
generic |
For good performance on most SPARC processors |
native |
For good performance on the system on which the compiler is running |
|
old |
Of processors earlier than the SuperSPARC processor |
|
sparc64vi |
Of the SPARC64 VI processor |
|
super |
Of the SuperSPARC processor |
|
super2 |
Of the SuperSPARC II processor |
|
micro |
Of the microSPARC processor |
|
micro2 |
Of the microSPARC II processor |
|
hyper |
Of the hyperSPARC processor |
|
hyper2 |
Of the hyperSPARC II processor |
|
powerup |
Of the Weitek PowerUp processor |
|
ultra |
Of the UltraSPARC processor |
|
ultra2 |
Of the UltraSPARC II processor |
|
ultra2e |
Of the UltraSPARC IIe processor |
|
ultra2i |
Of the UltraSPARC IIi processor |
|
ultra3 |
Of the UltraSPARC III processor |
|
ultra3cu |
Of the UltraSPARC III Cu processor |
|
ultra3i |
Of the UltraSparc IIIi processors. |
|
ultra4 |
Of the UltraSPARC IV processors. |
|
ultra4plus |
Of the UltraSPARC IVplus processor. |
|
ultraT1 |
Of the UltraSPARC T1 processor. |
|
ultraT2 |
Of the UltraSPARC T2 processor. |
|
x86 |
generic |
Of most x86 processors |
pentium |
Of the Intel Pentium processor |
|
pentium_pro |
Of the Intel Pentium Pro processor |
|
pentium3 |
Of the Intel Pentium 3 style processor |
|
pentium4 |
Of the Intel Pentium 4 style processor |
On most SPARC 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.