From: David Powell Newsgroups: comp.os.msdos.djgpp Subject: Re: A modifier -- volatile Date: Sat, 31 Jan 1998 23:01:46 +1100 Organization: The University of Melbourne Lines: 18 Message-ID: <34D312A9.8966416@usa.net> References: <199801252242 DOT RAA29221 AT delorie DOT com> NNTP-Posting-Host: its-tserv4asy63.its.unimelb.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk VAMPYR wrote: > A syntax: > > volatile int variable; > > But what is the "volatile" means? It means that the compiler won't optimize the variable by loading it into a register. This is usually used when you have an interrupt handler etc. which might make changes to the value of the variable which an optimizing compiler would be unable to predict cya