Solaris SPARC to Solaris x86 Porting Guide
-nofstore
This option disables forced precision
of an expression.
Option ignored[
3]
-x386 (C)
This option optimizes the code for the
80386 processor.
Option ignored[
3]
-x486 (C)
This option optimizes the code for the
80386 processor.
Option ignored[
3]
-xpentium
This option optimizes the code for the
Pentium processor.
Warning issued by C compiler[
2]
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 x86 platform and would give a compiler warning
when used on the SPARC platform. To avoid this warning, this compiler option should not be used on
the SPARC platform.
[2] The C compiler option works only for the x86 platform and would give a compiler warning when
used on the SPARC platform. To avoid this warning, this compiler option should not be used on the
SPARC platform.
[3] The option is valid only on the x86 platform. While its use on the SPARC platform does not
generate any warning, this option is ignored during generation of binaries on the SPARC platform
.
Compiler options used on both Solaris versions but with different implications
The following options in the Sun Studio developer tools are used on both SPARC and x86 versions but
with different implications that are explained in the table. When a source program is compiled on the
Solaris OS using these options, the values passed to the options are different on both platforms.
Table 3: Options for Sun Studio
Compiler option Explanation Values for SPARC Values for x86
-Aname[(tokens)] (C)
This option associates
name with the specified
tokens like a #define
preprocessing directive.
The values for preassertions
are:
machine(sparc)
cpu(sparc)
The values for preassertions
are:
machine(i386)
cpu(i386)
-Dname[=tokens]
This option associates
name with the specified
tokens like a #define
preprocessing directive.
The values are:
sparc
(not valid in-Xc mode)
__sparc (valid in all modes)
The values are:
i386
(not valid in-Xc mode)
__i386 (valid in all modes)
-fast
This option selects a set of
baseline options for
optimizing benchmark
applications.
The option expands to the
following values on SPARC
platform:
-fns
-fsimple=2
-fsingle
-ftrap=%none
-xalias_level=basic
-xarch
-xbuiltin=%all
-xdepend
-xlibmil
-xmemalign=8s
-xO5
-xprefetch=
auto,explicit
The option expands to the
following values on x86
platform:
-fns
-fsimple=2
-fsingle
-ftrap=%none
-nofstore
-xarch
-xbuiltin=%all
-xdepend
-xlibmil
-xO5
-fnonstd
This option causes
nonstandard initialization
of floating-point arithmetic
hardware.
This option expands to:
fns
-ftrap=common
This option expands to:
ftrap=common
14