Richard Hartman wrote: > > This hypothetical optimization would fall apart on some of my > code, where I do "resource math". > > I have a series of resources, starting at X. I have a status > represented by an enum (or integer). I then translate the > status to a displayable text string by calculating the resource > thus: > > int resid = BASE_ID + status; I've only said this about five times by now, but I guess I have to say it again: There is no practical way to do this _perfectly_, but it is quite possible to do it in a way that would work with the way most of us code. > Your optimization would strip out all of my displayable strings! I've also said this before: the optimisation would have to be configurable. I don't really care about this optimisation, nor can I imagine I'd use it. My only point was that just because tool X can't be perfect doesn't mean it can't work at all. We programmers, as binary beings, sometimes forget this more analog conception of quality. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
- Re: CodeWarrior Dead Code Optimizations Adam Wozniak
- RE: CodeWarrior Dead Code Optimizations Scott L. Johnson
- Re: CodeWarrior Dead Code Optimizations Steve Jackson
- Re: CodeWarrior Dead Code Optimizations Steve Jackson
- Re: CodeWarrior Dead Code Optimizations Gordon, Douglas
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- RE: CodeWarrior Dead Code Optimizations Frank Nichols
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- Re: CodeWarrior Dead Code Optimizations Richard Hartman
- RE: CodeWarrior Dead Code Optimizations Scott L. Johnson
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- Re: CodeWarrior Dead Code Optimizations Richard Hartman
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- RE: CodeWarrior Dead Code Optimizations Scott L. Johnson
- Re: CodeWarrior Dead Code Optimizations Richard Hartman
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- RE: CodeWarrior Dead Code Optimizations Don Hyde
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
- RE: CodeWarrior Dead Code Optimizations Frank Nichols
- Re: CodeWarrior Dead Code Optimizations Mark Wilden
