delorie.com/archives/browse.cgi | search |
From: | David Powell <dapowell AT usa DOT net> |
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 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |