Sun Studio 12 Update 1: C++ User's Guide

A.2.176 –xs

Allows debugging by dbx without object (.o) files.

This option causes all the debug information to be copied into the executable. This has little impact on dbx performance or the run-time performance of the program, but it does take more disk space.

This option has an effect only with -xdebugformat=stabs, where the default is not to copy debug data into the executable. With the default debug format -xdebugformat=dwarf, debug data is always copied into the executable, and there is no option to prevent the copying.