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.
The following table lists the valid values for c.
Platform |
Value of c |
Optimize for |
---|---|---|
SPARC |
generic
|
Using timing properties for good performance on most SPARC processors |
SPARC |
old |
Using timing properties of processors earlier than the SuperSPARC(TM) chip |
SPARC |
super |
Using timing properties of the SuperSPARC chip |
SPARC |
super2 |
Using timing properties of the SuperSPARC II chip |
SPARC |
micro |
Using timing properties of the microSPARC chip |
SPARC |
micro2 |
Using timing properties of the microSPARC II chip |
SPARC |
hyper |
Using timing properties of the hyperSPARC(TM) chip |
SPARC |
hyper2 |
Using timing properties of the hyperSPARC II chip |
SPARC |
powerup |
Using timing properties of the Weitek PowerUp chip |
SPARC |
ultra |
Using timing properties of the UltraSPARC I chip |
SPARC |
ultra2 |
Using timing properties of the UltraSPARC II chip |
SPARC |
ultra2i |
Using timing properties of the UltraSPARC IIi chip |
x86 |
generic |
Using timing properties of most x86 processors |
x86 |
386 |
Using timing properties of the Intel 386 chip |
x86 |
486 |
Using timing properties of the Intel 486 chip |
x86 |
pentium |
Using timing properties of the Intel Pentium chip |
x86 |
pentium_pro |
Using timing properties of the Intel Pentium Pro chip
|
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 them.