Optimizing out unreferenced variables
    Dan Bernstein 
    brnstnd at kramden.acf.nyu.edu
       
    Wed May  8 05:03:14 AEST 1991
    
    
  
In article <1475 at ecicrl.ocunix.on.ca> clewis at ferret.ocunix.on.ca (Chris Lewis) writes:
> I've not tried this myself, but I would presume that if the compiler
> is ANSI compliant, you can probably declare such variables "volatile"
> and the compiler will not optimize them out.  Volatile does work in
> similar situations with the RS/6000 compiler.
It's a whole bunch more portable and useful to give the user some
options to print out those strings. End of story.
---Dan
    
    
More information about the Comp.unix.programmer
mailing list