Solaris SPARC to Solaris x86 Porting Guide
-KPIC
This option is used to
compile source files when
building a shared library.
Equivalent to: -
xcode=pic32
Same as -Kpic
-Kpic
This option is used to
compile source files when
building a shared library.
Equivalent to: -
xcode=pic13
Compiles with position-
independent code.
-PIC (C++)
This option is used to
compile source files when
building a shared library.
Equivalent to: -
xcode=pic32
Same as -Kpic
-pic (C++)
This option is used to
compile source files when
building a shared library.
Equivalent to: -
xcode=pic13
Same as -Kpic
-xarch
This option specifies the
instruction set architecture
(ISA).
The values are:
generic
generic64
native
native64
v7
v8a
v8
v8plus
v8plusa
v8plusb
v9a
v9b
v9
The values are:
generic
386
pentium_pro
-xchip
This option specifies the
target processor for use by
the optimizer.
The values are:
generic
old
super
super2
micro
micro2
hyper
hyper2
powerup
ultra
ultra2
ultra2e
ultra2i
ultra3
ultra3cu
The values are:
generic
386
486
pentium
pentium_pro
-xO
This option optimizes the
object code depending on
the levels set.
The values are:
xO1: Does basic local
optimization
xO2: Does basic local and
global optimization.
xO3: Performs like -xO2,
but also optimizes
references or definitions for
external variables.
xO4: Performs like -xO3,
but also automatically
inlines functions contained
in the same file for faster
execution.
xO5: Generates the highest
level of optimization.
The values are:
xO1: Preloads arguments
from memory and cross-
jumping, as well as the
single pass of the default
optimization.
XO2: Schedules both high-
and low-level instructions
and performs improved
spill analysis, loop memory-
reference elimination,
register lifetime analysis,
enhanced register
allocation, and elimination
of global common sub-
expressions.
xO3: Performs loop
strength reduction,
induction variable
elimination, on top of the
15