[Info-vax] VMS Cobol - GnuCOBOL
Arne Vajhøj
arne at vajhoej.dk
Tue Feb 28 19:13:45 EST 2023
On 2/28/2023 6:39 PM, Scott Dorsey wrote:
> John Reagan <xyzzy1959 at gmail.com> wrote:
>> Debugging optimized code has been the Holy Grail for years. On Alpha, GEM =
>> and the debugger have
>> some attempt at make it possible but it wasn't perfect. Later DWARF standa=
>> rds have added additional
>> features for compilers to use to help convey the transformations used by th=
>> e compiler, but it still a
>> challenge to present to the human in a way that makes sense. And of course=
>> , if the original source
>> program was technically illegal (which might be why you are in the debugger=
>> to start with), optimizers
>> will often do unspeakable transformations to such invalid programs. =20
>
> gus baird always said "You don't need a debugger. What you need is to stop
> putting bugs in your programs."
And Dijkstra said:
"If debugging is the process of removing software bugs, then programming
must be the process of putting them in."
But we live in the real world.
The old rule of thumb says 1 bug per 1000 LOC. So 50 MLOC means
50000 bugs.
Arne
More information about the Info-vax
mailing list