Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debuggers

4 views
Skip to first unread message

jo...@ima.uucp

unread,
Mar 23, 1987, 6:09:22 PM3/23/87
to
I just wanted to add some notes to the previous comments on debugging optimized
code. At MIPS we planned for debugging optimized code by providing data
structures to include information to map code back to source even after
it was heavily modified by the optimizer (e.g. we save one line information
datum per instruction of text in a very compact form so that we can
map it to the source code generating it -- or approximate if more than
one source line contributed to a single instruction). We also provided for
levels of debugging information akin to levels of optimization. So far, we've
noted that the only people who need to debug optimized code are
the compiler group and the level of debugging you get with just letting
the debugging info go where it will after optimization is sufficient to
fix the optimizer when it's broken (not the best, but sufficient).
People seem satisfied to debug non-optimized code and then re-compile
their program when they think it works-- some may even keep two copies
of the binaries around, one for debugging and one for production.

So we do not provide complete debugging for optimized code. In order to
do so we would need two things: fill out our optimization tables describing
register mapping on a basic block boundary, procedure inlining, etc. and
decide on a way to present a coherent view of a program written one way but
appearing another way at debug time. The former would consume a large amount
of space and latter is probably an AI project.

Mark I. Himelstein
decwrl!mips!himel
--
Send compilers articles to ima!compilers or, in a pinch, to Lev...@YALE.ARPA
Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | cca}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers. Meta-mail to ima!compilers-request

0 new messages