Use of 'volatile' on RISC ULTRIX C compiler
    Marc Evans Ultrix Q/A 
    evans at decvaxdec.com
       
    Thu Oct 11 22:46:58 AEST 1990
    
    
  
In article <11190 at sybase.sybase.com>, mcfong at mercury.sybase.com (Martin C. Fong) writes:
|> How does the 'volatile' keyword affect the declarations below:
|> 
|> 	volatile int * a;
|> 	int volatile * b;
|> 	int * volatile c;
|> 
|> All three statements are legal under the RISC ULTRIX C compiler.
|> 
|> Most of the documentation I have (including DEC's) does not elaborate
|> enough (for me anyway) on how the 'volatile' declaration should be
|> used.
Prior to version 2.1 of the MIPS C compiler, use of the volatile keyword will
almost always produce a bad program. You should not use it...
As far as its intended definition though, it is suppose to comply with the
ANSI definition.
- Marc
-- 
===========================================================================
Marc Evans - WB1GRH - evans at decvax.DEC.COM  | Synergytics     (603)635-8876
      Unix and X Software Contractor        | 21 Hinds Ln, Pelham, NH 03076
===========================================================================
    
    
More information about the Comp.unix.ultrix
mailing list