Blame is irrelavent. I would never use a development system that would do
this. As someone said, if you want to look for ways to squeeze, then use
extra tools, but the IDE/compiler must be designed for worst case and try to
guarantee a viable executable. Anything less is a waste of my time - I have
enough to worry about in the program design without having to second guess
"help" the compiler throws in for free. This reminds me of M$ Word's helping
me with capitalization of the first letter in a sentence - drives me
freaking crazy!
/fn
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark
Wilden
Sent: Friday, June 09, 2000 1:39 PM
To: Palm Developer Forum
Subject: Re: CodeWarrior Dead Code Optimizations
Don Hyde wrote:
>
> A heuristic is allowed to fail sometimes, and can still be mighty useful
as
> an aid to decision-making. But a heuristic whose failure mode is code
that
> mysteriously fails to function has absolutely no place in the code
generator
> of a compiler.
How could an option that you turn on explicitly cause 'mysterious'
failures? I've already said it twice, but I should have made it clearer:
since this option could not handle all cases, it should most certainly
not be on by default. Kinda like a lot of compiler optimisation
switches, in fact, right?
> As a part of the compiler, it would be way too dangerous to ever use.
> Imagine falling prey to the temptation to turn on the last bit of
> optimization just before release, doing only a cursory test, to have your
> users discover that the compiler had deleted all the error messages. Of
> course, we're all professionals here and never fall prey to temptation...
Anyone who would turn on all optimisations and doesn't test their code
thoroughly has only themselves to blame. Most of us who've been in the
game longer than a year or two has seen enough compiler optimisation
bugs not to test what we ship to our customers.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/