Sun Studio 12: Fortran User's Guide

3.4.116 –xbinopt={prepare | off}

(SPARC) Prepare binary for post-compilation optimization.

The compiled binary file is enabled for later optimizations, transformations, and analysis by binopt(1). This option may be used when building executables or shared objects, and it must be used with an optimization level of -O1 or higher to be effective.

There will be a modest increase in the size of the binary file when built with this option, on the order of 5%.

If you compile and link in separate steps, -xbinopt must appear on both the compile and link steps.

If not all the source code for an application is compiled with -xbinopt, the -xbinopt flag should still appear on the final link step that builds the program binary, as shown below:


example% f95 -0 program -xbinopt=prepare a.o b.o c.f95

Only code compiled with -xbinopt can be optimized by binopt(1).

The default is -xbinopt=off.