🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #136

Re: preprocessing subterfuge

#136
From: Mike Albaugh
Date: Mon, 10 Aug 1992 15:45
27 lines
1770 bytes
From article <23277A@erik.naggum.no>, by enag@ifi.uio.no (Erik Naggum):
> Steve Clamage <steve@taumet.com> writes:
> |
> |   5.  In our first effort at making a Standard compiler, we rejected all
> |   non-conforming code.  We quickly found out no one would buy such a
> |   compiler.  We had to allow, at least under some circumstances, even code
> |   which was explictly illegal because our customers demanded compatibility.
> 
> Sigh.  Where can I get a compiler which rejects non-conforming code?
> Call it an educational tool more than a production tool, if you like.

	gcc -Wall -ansi -pedantic comes pretty close. Of course, there are
a few -W flags that are _not_ included in -Wall (rather puts the lie to
"all", no?), that you may need to turn on also. Upon "taking on" a piece
of code that I didn't write (or wrote long ago) for "maintainance", I
usually take a day or too to get a warning-free compilation. It's amazing
how many bugs one can find in "working" code :-)

	Of course, I can't always get rid of all the warnings, Since the
system-supplied header files on my SYSV386 are not conforming...

					Mike

| Mike Albaugh (albaugh@agames.com || netcom.com!agames.com!albaugh)
| Atari Games Corp (Arcade Games, no relation to the makers of the ST)
| 675 Sycamore Dr. Milpitas, CA 95035		voice: (408)434-1709
| The opinions expressed are my own (Boy, are they ever)
Technical Details
Message-ID: <1397@dms.agames.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!infopiz!lupine!motcsd!dms!albaugh
References: <23277A@erik.naggum.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!infopiz!lupine!motcsd!dms!albaugh
From: albaugh@dms.agames.com (Mike Albaugh)
Newsgroups: comp.std.c
Subject: Re: preprocessing subterfuge
Message-ID: <1397@dms.agames.com>
Date: 10 Aug 92 15:45:04 GMT
Article-I.D.: dms.1397
References: <23277A@erik.naggum.no>
Organization: Atari Games Inc., Milpitas, CA
Lines: 27