Fortran User's Guide

-xF

Allow function-level reordering by the Sun WorkShop Analyzer.

    SPARC:77 x86:77

Allow the reordering of functions (subprograms) in the core image using the compiler, the Analyzer and the linker. If you compile with the -xF option, then run the Analyzer, you can generate a map file that optimizes the ordering of the functions in memory depending on how they are used together. A subsequent link to build the executable file can be directed to use that map by using the linker -Mmapfile option. It places each function from the executable file into a separate section.

Reordering the subprograms in memory is useful only when the application text page fault time is consuming a large percentage of the application time. Otherwise, reordering may not improve the overall performance of the application. The Analyzer is part of the Sun WorkShop. See Using Sun WorkShop and Analyzing Program Performance with Sun WorkShop for further information on the Analyzer.