Sun Studio 12: C++ User's Guide

A.2.104.1 Interactions

The -xprofile=tcov option and the –xa option are compatible in a single executable. That is, you can link a program that contains some files that have been compiled with –xprofile=tcov, and others that have been compiled with –xa. You cannot compile a single file with both options.

The –xa option is incompatible with –g.

Warnings

If you compile and link in separate steps and you compile with -xa, be sure to link with –xa, or you might get unexpected results.

See also

–xprofile=tcov, tcov(1) man page, Program Performance Analysis Tools.