I'm using CCS Version: 5.5.0.00077
I can't seem to find pragma that can allow me to temporarily turn off optimization for a section of code.
(for the curious) the code doesn't do anything important it's a BREAK point location however the optimizer doesn't know that and it will poof it away (and thus the break point for the condition). Using a watch is less efficient and less specific (FYI). Anyhow is their such a program to disable optimization or push the optimization state change it then pop the last state? (Sort of like Lint allows you to turn off Linting stuff for a few lines that it gets confused by on a good day and then restore it's state afterward).
There are also times when you don't want code optimized (for debugging code for example the optimizer can drive you nuts at times). Making a general switch or a module specific switch is difficult to notice (IE you can turn off optimization and forget you did it for a module). However in a pragma this generally sticks out like a sore thumb (because you can search for it automatically).
Suggestions and thoughts welcome.
Stephen