Hello all...
I just discovered something regarding CodeWarrior code optimizations and
thought you might like to know.
---
Question: It is well known that CodeWarrior's linker will strip out
functions which are dead code (those which are coded but not called). But,
what does it do with string constants which are coded in the dead code
function? Are those stripped out also? One would hope they would be.
Answer: Yes! String constants coded in functions which are dead code are
also stripped out.
---
Question: What if the string constants are in a resource file created by
Constructor? If they are only referenced by functions which are dead code,
are they stripped out also?
Answer: No!
---
Hope this info is useful to you.
There is likely more to know here.
- Is there any setting which causes string RESOURCES referenced only by
functions which are dead code to be automatically stripped out?
- Are there any other significant cases where string constants are not
stripped out when they are only referenced by functions which are dead code?
Thanks.
-----Steve Jackson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/