Can the -O0 compiler flag be a substitute for the volatile keyword in C?
mymicrocontroller.com