Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: Optimizing out unreferenced variables Message-ID: <13206:May719:03:1491@kramden.acf.nyu.edu> Date: 7 May 91 19:03:14 GMT References: <608@elroy> <1475@ecicrl.ocunix.on.ca> Organization: IR Lines: 10 In article <1475@ecicrl.ocunix.on.ca> clewis@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