Date: Wed, 6 Aug 1997 11:19:29 -0400 (EDT) From: "Art S. Kagel" To: Korenschi Francisc Eduard Cc: djgpp AT delorie DOT com Subject: Re: Volatile In-Reply-To: <33E8495B.3EBC@starnets.ro> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 6 Aug 1997, Korenschi Francisc Eduard wrote: > I know it sounds crazy, but what does the 'voltaile' with a > variable/function ? The volatile storage class notifies the compiler that a variable's value may change unexpectedly, perhaps as the result of the action of an interrupt/signal handler or asynchronous thread. The compiler should then generate code to reload the variable from memory to a register each time it is accessed and not depend on any previous load to a register. In general the compiler will also generate an immediate store instruction if the register is modified, where it might defer the store otherwise. Art S. Kagel, kagel AT bloomberg DOT com