Mark Wilden wrote in message <13427@palm-dev-forum>...
...
>Only because you're thinking about a perfect solution (which I agree is
>intractable), not merely a useful solution.
>
>Given that it's possible for CodeWarrior to identify dead code, it is
>possible for it to identify places in that code where certain
>preprocessor defines are used. If it finds that those defines are _only_
>used in that dead code, it is possible for it to strip the associated
>resources out of the executable.
>
>I maintained a compiler (for a proprietary language) for about five
>years. I know that this can be done. Whether it's important enough to
>warrant doing, however, is another matter. :)
>
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;
Your optimization would strip out all of my displayable strings!
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/