cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/06/11:21:08

Date: Wed, 6 Aug 1997 11:19:29 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Korenschi Francisc Eduard <sarmis AT starnets DOT ro>
Cc: djgpp AT delorie DOT com
Subject: Re: Volatile
In-Reply-To: <33E8495B.3EBC@starnets.ro>
Message-Id: <Pine.D-G.3.91.970806111552.6551E-100000@dg1>
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019