|
Compiler and architecture matters, as we all agree.
So we can have a compiler that does, or does not, make static vs global
vs local behave quite differently in terms of performance, RAM, stack, etc..
The only real test is to test the code base on the machine of interest.
Just look at the code reduction (FLASH) and RAM usage that occurs with Hitech.
I can vouch for the fact it is significant, compared to Imagecraft. Needless to
say it is accompanied by performance improvement as well.
My conclusion to date is that there is a time and place for Globals, with attendant
risks, and the same can be said for Locals and Static. There is not one answer
to this discussion.
Regards, Dana.
|