🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #587

Re: Volatile (was Re: observability)

#587
From: Mike McNelly
Date: Wed, 13 Sep 1989 15:41
17 lines
1160 bytes
> In article <1989Sep8.091010.12450@gdt.bath.ac.uk> exspes@gdr.bath.ac.uk (P E Smee) writes:
> >one might ask why you would want to write a chunk
> >of code that has ZERO effect.

> I sometimes do this during program development. I declare the data
> structures and write the code that operates on them, leaving the i/o
> to worry about later. I may want to compile at this point to check
> for errors in the code.

Ah, but any compiler that has optimization capabilities that would allow
it to nullify a useless program invariably does not do such optimization
unless you ask for it with flags such as -O. My guess is that you don't
optimize such a program during development, only after development is
nearly complete.

Mike McNelly
mike%hpfcla@hplabs.hp.com
Technical Details
Message-ID: <7330001@hpfcso.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!mike
References: <28993@news.Think.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!mike
From: mike@hpfcso.HP.COM (Mike McNelly)
Newsgroups: comp.std.c
Subject: Re: Volatile (was Re: observability)
Message-ID: <7330001@hpfcso.HP.COM>
Date: 13 Sep 89 15:41:08 GMT
References: <28993@news.Think.COM>
Organization: Hewlett-Packard, Fort Collins, CO, USA
Lines: 17