Related articles |
---|
[11 earlier articles] |
Re: Justifying Optimization joachim_d@gmx.de (Joachim Durchholz) (2003-01-26) |
Re: Justifying Optimization lars@bearnip.com (2003-01-26) |
Re: Justifying Optimization cgweav@aol.com (2003-01-29) |
Re: Justifying Optimization tmk@netvision.net.il (2003-01-30) |
Re: Justifying Optimization lex@cc.gatech.edu (Lex Spoon) (2003-02-05) |
Re: Justifying Optimization bobduff@shell01.TheWorld.com (Robert A Duff) (2003-02-05) |
Re: Justifying Optimization vbdis@aol.com (2003-02-06) |
Re: Justifying Optimization vbdis@aol.com (2003-02-06) |
Re: Justifying Optimization joachim_d@gmx.de (Joachim Durchholz) (2003-02-11) |
Re: Justifying Optimization joachim_d@gmx.de (Joachim Durchholz) (2003-02-11) |
Re: Justifying Optimization joachim_d@gmx.de (Joachim Durchholz) (2003-02-11) |
Re: Justifying Optimization bhurt@spnz.org (2003-02-11) |
Re: Justifying Optimization nde_plume@ziplip.com (2003-02-11) |
[2 later articles] |
From: | vbdis@aol.com (VBDis) |
Newsgroups: | comp.compilers |
Date: | 6 Feb 2003 00:06:59 -0500 |
Organization: | AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com |
References: | 03-01-098 |
Keywords: | practice |
Posted-Date: | 06 Feb 2003 00:06:59 EST |
Joachim Durchholz <joachim_d@gmx.de> schreibt:
> It turned out that a callback had been declared with a wrong
> signature, causing stack corruption with production code and running
> well and fine in debug mode.
>The point is: I spent an entire week debugging at assembly level to
>fix a bug that was entirely irrelevant to the logic of the
>application.
Did you never ask for better development tools, or programming
languages, which reveal such bugs on the very first compilation of the
code?
It may be annoying to old assembly hackers, which now are forced to
use C and continue writing their code in the "good old way", when
their new compiler will disallow the use of many of their bad
habits. But a good (rigid) programming language and compiler is the
cheapest "ghost buster", since preventing bugs can replace as many
weeks of hunting bugs as you like. Also the optimization of such code
is safer to accomplish, because the source code contains many hints
about what and how things can be optimized, in contrast to weakly
typed code, where only an intensive global analysis can reveal side
effects and other practices, which can make optimized code behave
differently from non optimized code.
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.