|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Studio 12.3: C User's Guide Oracle Solaris Studio 12.3 Information Library|
Be aware of the following important issues when compiling for x86 Solaris platforms.
Programs compiled with -xarch set to sse, sse2, sse2a,sse3, or beyond must be run only on platforms that provide these extensions and features.
If you compile and link in separate steps, always link using the compiler and with the same -xarch setting to ensure that the correct startup routine is linked.
Numerical results on x86 might differ from results on SPARC due to the x86 80-bit floating-point registers. To minimize these differences, use the -fstore option or compile with -xarch=sse2 if the hardware supports SSE2.
Numerical results can also differ between Solaris and Linux because the intrinsic math libraries (for example, sin(x)) are not the same.