<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>volatile</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/22379/volatile</link><description> 
Hi, 
when keyword volatile is used in the C programming...i have studied
in one book that this volatile keyword is a directive to the
compiler&amp;#39;s optimizer that variables declared as volatile will not
undergo any optimization by the compiler........</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: volatile</title><link>https://community.arm.com/thread/48756?ContentTypeID=1</link><pubDate>Sun, 14 Oct 2007 08:52:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ac1d8b36-75f8-4545-9937-65cbbf080ba9</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;in one book that this volatile keyword is a directive to the
compiler&amp;#39;s optimizer that variables declared as volatile will not
undergo any optimization by the compiler.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
You&amp;#39;re studying from a bad book then. The meaning of volatile is
quite a bit more specific than that. The actual meaning is that the
compiled code must behave like the abstract machine defined in the C
language standard, as far as volatile qualified variables are
concerned. Disabling some optimizations is just one of its
effects.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: volatile</title><link>https://community.arm.com/thread/51208?ContentTypeID=1</link><pubDate>Sun, 14 Oct 2007 08:25:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:97e33a4b-f2fa-4b98-a31b-82bc86703249</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The compiler must not assume that it knows the value of the
variable and optimize away reloads, since a volatile variable may
change value asynchronously.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>