When I debug my application with DS-5, the debug indicator doesn't point to correct instructions sometimes or jumps back. Some variables show unavailable, or show value later after one or two instructions.
How do I turn off code optimization for debugging?
If you are using gcc, then -O0 will turn off optimizations. Here is a full list of gcc optimization options:
gcc.gnu.org/.../Optimize-Options.html
thanks, I see great improvement, but data struct variables are not updated often.