Volatile (computer programming): Difference between revisions

Content deleted Content added
+ another external link
Line 17:
In this example, the code sets the value stored in <code>foo</code> to 0. It then starts to [[polling (computer science)|poll]] that value repeatedly until it changes to 255.
An [[optimizing compiler]] will notice that no other code can possibly change the value stored in <code>foo</code>, and therefore assume that it will remain equal to 0 at all times. The compiler will then replace the function body with an [[infinite loop]], similar to this:see to u get this point??????????
 
<code>