Oracle® Solaris Studio 12.4: Fortran User's Guide

Exit Print View

Updated: March 2015
 
 

3.4.112 –xbinopt={prepare | off}

(SPARC) This option is now obsolete and will be removed in a future release of the compilers. See –xannotate[={yes|no}]

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).

Binaries compiled with -xpg for gprof profiling should not be used with binopt as they are incompatible and can result in internal errors.

The default is -xbinopt=off.