oc...@pocketmt.com wrote:
> C offers the "volatile" attribute ...

I never found an issue when using static public variables for
synchronizing threads (while avoiding "atomic" problems). So seemingly
FPC (and Delphi) handles all non-local variables as volatile. (While C
usually optimizes them using temporary local variables if appropriate.)

C can do local (Stack?) volatile variables. This does not seem to make
much sense.

-Michael

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to