Fortran User's Guide

-xtarget=t

Specify target platform for optimization.

    SPARC: 77/90 x86:77

Specify the target platform for the instruction set and optimization.

t must be one of: native, generic, platform-name.

The -xtarget option permits a quick and easy specification of the -xarch, -xchip, and -xcache combinations that occur on real platforms. The only meaning of -xtarget is in its expansion.

The performance of some programs may benefit by providing the compiler with an accurate description of the target computer hardware. When program performance is critical, the proper specification of the target hardware could be very important. This is especially true when running on the newer SPARC processors. However, for most programs and older SPARC processors, the performance gain is negligible and a generic specification is sufficient.

native: Optimize performance for the host platform.

The compiler generates code optimized for the host platform. It determines the available architecture, chip, and cache properties of the machine on which the compiler is running.

generic: Get the best performance for generic architecture, chip, and cache.

The compiler expands -xtarget=generic to:

-xarch=generic -xchip=generic -xcache=generic

This is the default value.

platform-name: Get the best performance for the specified platform.

See Appendix D, Appendix D, -xtarget Platform Expansions, for a complete list of current SPARC platform names accepted by the compilers. For example, -xtarget=ultra2i

For x86: -xtarget= accepts: