Tool/software: Code Composer Studio
When the compiler optimization is off, I am able to use debug mode for stepping through each instruction, but when optimization is on, I am not able to debug my code because the debugger will skip over instructions. Is their a proper way to use the optimizing compiler? For example, should I first develop my code with no optimization, and then after my code is bug free, then optimize it? Is that the proper way to go about using optimization?