Debugging of optimized code

ssimmons@convex.convex.com (Steve Simmons)
Thu, 2 Feb 1995 06:15:35 GMT

          From comp.compilers

Related articles
[13 earlier articles]
Re: Debugging of optimized code miker@metaware.com (1995-01-24)
Re: Debugging of optimized code cef@geodesic.com (Charles Fiterman) (1995-01-25)
Re: Debugging of optimized code danhicks@aol.com (1995-01-27)
Re: Debugging of optimized code danhicks@aol.com (1995-01-29)
Re: Debugging of optimized code monnier@di.epfl.ch (Stefan Monnier) (1995-01-27)
Re: Debugging of optimized code jqb@netcom.com (1995-02-02)
Debugging of optimized code ssimmons@convex.convex.com (1995-02-02)
Re: Debugging of optimized code copperma@grenoble.rxrc.xerox.com (1995-01-30)
Re: Debugging of optimized code wicklund@Intellistor.COM (1995-01-30)
Re: Debugging of optimized code copperma@grenoble.rxrc.xerox.com (1995-01-30)
Debugging of optimized code cliffc@hpl.hp.com (1995-02-02)
Re: Debugging of optimized code bill@amber.ssd.csd.harris.com (1995-02-01)
Re: Debugging of optimized code monnier@di.epfl.ch (Stefan Monnier) (1995-02-03)
[2 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: ssimmons@convex.convex.com (Steve Simmons)
Keywords: debug, optimize
Organization: CONVEX News Network, Engineering (cnn.eng), Richardson, Tx USA
References: 95-01-092
Date: Thu, 2 Feb 1995 06:15:35 GMT

urs@engineering.ucsb.edu (Urs Hoelzle) writes:


> Of course, deoptimization is no panacea. For example, it relies on
> the compiler being correct, it can't hide all optimizations, and it
> probably doesn't work as well for non-pointer-safe languages because
> every memory access can potentially fail. I just wanted to observe
> that the situation isn't hopeless, and I think today's debuggers could
> still be improved quite a bit. For example, there's no fundamental
> reason why you shouldn't be able to set a breakpoint in a method even
> if that method was inlined in many places.




You are right. The two biggest advantages that we have experienced
from debugging optimized code are:


- Just because code produces the correct answers with no optimization.
It does not follow that the code is correct. With optimizations on,
certain bugs materialize, and they are not always compiler related.


- When your products ships, it is going to be optimized. You need
that ability to debug core dumps in the field.


Thank you.


Steve Simmons
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.