volatile int for frame count
Posted: Sat Jul 26, 2014 8:00 pm
Hi,
I just happened to see that the frame variable in the hello_world was defined as a volatile int.
Is there any specific reason?
I mean, would the optimizations pose problems on this specific variable? If yes why?
Thanks
I just happened to see that the frame variable in the hello_world was defined as a volatile int.
Is there any specific reason?
I mean, would the optimizations pose problems on this specific variable? If yes why?
Thanks