From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9da298537a16487e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-22 10:43:14 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!uwm.edu!cs.utexas.edu!howland.reston.ans.net!pipex!uunet!gwu.edu!gwu.edu!not-for-mail From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: Run-time checking and speed Date: 22 Jan 1995 13:43:14 -0500 Organization: George Washington University Message-ID: <3fu902$6al@felix.seas.gwu.edu> References: <3ev16u$ojc@pong.lasc.lockheed.com> <3f3deb$4us@gnat.cs.nyu.edu> <3fa2pk$kbi@felix.seas.gwu.edu> NNTP-Posting-Host: 128.164.9.3 Date: 1995-01-22T13:43:14-05:00 List-Id: In article , Robert I. Eachus wrote: > > Yes, compilers sometimes have command-line switch to suppress _all_ > > checks, _everywhere_. IMHO, using this is downright foolish. > > Wow! I never thought I would be saying something like this, but: > > No, Mike, the switch is very useful during development. It allows >you to quickly determine which compilation units may deserve further >study when doing this sort of optimization. [snip] > So keep the switch, just require that it not be used in delivered >code. ;-) Good point, Bob; I hadn't thought of it. It;'s actually the opposite of what one usually sees advocated: checks _on_ during development, then _off_ for production. Uhhh, no. It's interesting to contemplate just how little is to be saved by suppressing checks in a well-designed program that uses the (sub-)type system to advantage. The myth has always been that Ada does all these "extra" checks, but of course the number of checks is inversely proportional in some sense to the intelligent use of the type system. That being the case, because the compiler has (we hope) limited the checks to those are really needed, the difference in suppressing those checks should be at the margin. Mike Feldman