Re: Volatile Keyword
Verry exact explanation from C-Man!!
I wish only to add this on C-Man post:
Dont abuse the volatile keyword!!
At first glance you are tempted to declare all variables in your program volatile (because you can use them safelly in interupts, for example)
Every time you declare a variable volatile, the compiler reserve a location of memory only for that variable , this location cannot be used anymore by the overlay processor (wich can free memory resources when not nedeed).
On an embedeed processor with low RAM memory, the generated code will poorly optimized (read: low execution time)