Re: [cc65] volantile support

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2003-01-13 18:13:15


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.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-13 18:13:19 CET