This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Static function register optimization

Can someone tell me why all functions declared as "static" do not seem to have any register optimization done on them? At least this is implied since they are not listed in the map file where register usage is specified but become listed if the "static" declaration is removed.

Does this imply that I should remove the "static" declaration from any function to which I have set a global pointer in order to ensure optimization is done on that function?