This is a discussion on Use of Volatile within the C and C++ forums, part of the Programming Talk category; Use of Volatile The compilation system tries to reduce code size and execution time on all machines, by optimizing code. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Use of Volatile
Use of Volatile
The compilation system tries to reduce code size and execution time on all machines, by optimizing code. It is programmer responsibility to inform compilation system that certain code (or variable) should not be optimized. Many programmers do not understand when to use volatile to inform compilation system that certain code should not be optimized or what it does. Although (no doubt) their program work, they do not exploit the full power of the language. Use of Volatile in C |