Solaris SPARC to Solaris x86 Porting Guide
-xthreadvar
This option controls the implementation of
thread local variables.
Warning issued by C compiler[
2]
-xvector
This option enables automatic generation
of calls to the vector library functions.
Warning issued by C compiler[
2]
-xvis
This option is used when the assembly-
language templates defined in the VIS
instruction-set Software Developers Kit
(VSDK) are used.
Option ignored [
3]
-xvpara (C)
This option warns about loops that have
#pragma MP directives specified when
the loop may not be properly specified for
parallelization.
Option ignored [
3]
-Zll (C)
This option creates the program database
for
lock_lint, but does not generate
executable code.
Option ignored [
3]
Key: (C) denotes compiler option used by cc (C compiler). (C++) denotes compiler option used by CC
(C++ compiler). Otherwise the option is valid for both cc and CC (C and C++ compilers).
Notes:
[1] The C++ compiler option works only for the SPARC platform and would give a compiler warning
when used on the x86 platform. To avoid this warning, this compiler option should not be used on the
x86 platform.
[2] The C compiler option works only for the SPARC platform and would give a compiler warning
when used on the x86 platform. To avoid this warning, do not use this compiler option on the x86
platform.
[3] The option is valid only on the SPARC platform. While its use on the x86 platform does not
generate any warning, this option is ignored during the generation of binaries on the x86 platform.
Compiler options for x86 platforms not used on SPARC platform
This section describes the options that are used on the x86 version of Sun Studio software and are not
present in the SPARC version. When a source program is compiled using these options on the Solaris
OS, SPARC Platform Edition, a warning is issued indicating that an illegal option was used, or the
compiler ignores the option.
Table 2: Options for Sun Studio (x86 Version)
Compiler option Explanation Behavior on SPARC platform
-386 (C++)
Same as -xtarget=386. Specifies
the target platform as 386-based
instruction set and optimization.
Warning issued by C++ compiler[
1]
-486 (C++)
Same as -xtarget=486. Specifies
the target platform as 486-based
instruction set and optimization.
Warning issued by C++ compiler[
1]
-fprecision
This option initializes the rounding-
precision mode bits in the floating-
point control word to single (24 bits),
double (53 bits), or extended (64
bits).
Option ignored[
3]
-fstore
This option causes the compiler to
convert the value of a floating-point
expression or function to the type on
the left side of an assignment rather
than leave the value in a register
when: The expression or function is
assigned to a variable. The expression
is cast to a shorter floating-point type.
Option ignored[
3]
13