C
Christian Christmann
Hi,
the keyword 'volatile' indicates that a variable
may be modified externally. The occurance of this
keyword in a function often symbolizes a compiler
not to optimize this entire function.
Why is it a problem for a compiler to analyze and improve
such functions? Why does the fact that the variable
may be changed at any point of the program execution avoids
any code reorganization (for the "volatile-specific" code)?
Regards,
Chris
the keyword 'volatile' indicates that a variable
may be modified externally. The occurance of this
keyword in a function often symbolizes a compiler
not to optimize this entire function.
Why is it a problem for a compiler to analyze and improve
such functions? Why does the fact that the variable
may be changed at any point of the program execution avoids
any code reorganization (for the "volatile-specific" code)?
Regards,
Chris