Skip to main content
Renesas Electronics America - Knowledgebase

Do I attach volatile declaration whose values are change externally?

Latest Updated:12/01/2011


I have set the optimization level to "Basic optimization".
Do I have to attach a volatile declaration to variables whose values are changed externally? (Currently, no volatile declaration is attached.)


Attach a volatile declaration.
Even in the case of basic optimization, those variables may possibly be optimized.
In the case you stated in your question, be sure to attach a volatile declaration.
Suitable Products