HP Pascal/HP-UX Release Notes Version A.10.08
30 Chapter 1
New and Changed Features
Debugging Optimized Code (DOC)
Debugging Optimized Code (DOC)
In conjunction with the HP Distributed Debugging Environment (DDE),
the HP Pascal/HP-UX compiler now provides support for debugging
optimized code. This support includes:
• Tracebacks with line-number annotation.
• Setting breakpoints and single-stepping at the source statement
level.
• Mapping between source statements and machine instructions.
• Viewing and modifying global variables at procedure call boundaries.
• Viewing and modifying parameters on procedure entry.
To enable debugging of optimized code, specify the -g command-line
option together with the -O, +O1, or +O2 option. Currently, debugging is
supported at optimization levels 2 and below. If you use -g with the +O3
or +O4 option, the compiler issues a warning stating that the options are
incompatible, and ignores the -g option.