Quote Originally Posted by danlee58 View Post
Without Optimization the code exceeds the allocated space. I only want to turn off the optimization that eliminates unreachable branches.
I don't see why you won't just use "volatile." Without it, various other optimizations might be made that are inappropriate. You don't want the compiler to "waste" code by reloading variables, yet that's exactly what needs to happen when more than one execution thread can change the variable.