Sun Studio 12: Fortran Programming Guide

UltraSPARC-III and UltraSPARC-IV Support

Both the -xtarget and -xchip flags accept ultra3 and ultra3 variants and will generate optimized code for UltraSPARC-III and UltraSPARC-IV processors. When compiling and running an application on the latest UltraSPARC platforms, specify the -fast flag to automatically select the proper compiler optimization options for that platform.

For cross-compilations (compiling on a platform other than the latest UltraSPARC platforms but generating binaries intended to run on an UltraSPARC-III processor), use these flags:

-fast -xtarget=ultra3

Use -m64 to compile for 64-bit code generation.

See the Fortran User’s Guide for a list of -xtarget flags for the latest UltraSPARC processors.

Performance profiling, with -xprofile=collect: and -xprofile=use:, is particularly effective on the UltraSPARC-III and UltraSPARC-IV platforms because it allows the compiler to identify the most frequently executed sections of the program and perform localized optimizations to best advantage.