From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-13 18:13:15
Hi!
On Mon, Jan 13, 2003 at 10:26:58AM +0100, Christian Krüger wrote:
> is the 'volantile' keyword fully supported?
It's called "volatile", and the keyword itself is parsed but ignored.
> (Does polling on a var which is modified in an
> interrupt work, if the var is declared as 'volantile'?)
In most cases, the compiler will not remove memory accesses, because it does
not have enough registers to keep values elsewhere. So I would suggest
declaring the variable as volatile and trusting the compiler not to remove the
access. If you want to be really sure, have a look at the assembly output.
Regards
Uz
--
Ullrich von Bassewitz uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-13 18:13:19 CET