volatile (in comp.lang.c)

Greg Limes limes at sun.uucp
Sat Apr 30 15:00:58 AEST 1988


In article <2674 at geac.UUCP> daveb at geac.UUCP (David Collier-Brown) writes:
>
>  I reiterate: the question of the necessity of certain information
>for optimization purposes is:
>	1) in part architectural,
>	2) in part a question of compiler technology, and
>	3) open.
>
>  Specifically:
>	1) what architectures currently use asynchronously-changing
>memory locations for program notification of events? DEC Vax,
>various CDC boxes, MIPS(tm),...

... and any program with a signal handler that modifies a global
variable, which is pretty inclusive if you ask me, it all comes to the
same effect from the POV of both the mainline thread and the
compiler ...

>	2) what other programmer-visible alternatives are there?
>Interrupts, event queues, (Hoare) monitors... 

... use only specific transfer variables, test these only around calls
to synchronous functions that the compiler can never know about and must
assume that they modify these locations ...
-- 
   Greg Limes [limes at sun.com]				frames to /dev/fb



More information about the Comp.lang.c mailing list