C++ User's Guide

-xF

Enables reordering of functions by the linker.

If you compile with the -xF option and then run the Analyzer, you can generate a map file that shows an optimized order for the functions. 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 might not improve the overall performance of the application.

Interactions

The -xF option is only supported with -features=no%except (-noex).

See also

analyzer(1), debugger(1), ld(1) man pages