Support for Symbolic Debugging

The compiler lets you generate code to support symbolic debugging while the -O1 or -O2 optimization options are specified on the command line along with -g. However, you can receive these unexpected results:

The table below summarizes the effects of using the -g option with the optimization options.

These options

Imply these results

-g

debugging information produced, -O0, -fp disabled

-g -O0

debugging information produced, -O0 optimizations disabled

-g -O2

debugging information produced, -O2 optimizations enabled

-g -O2 -fp

debugging information produced, -O2 optimizations enabled, -fp disabled

-g -ip

 limited debugging information produced, -ip option enabled.