comp.lang.ada
 help / color / mirror / Atom feed
From: mfeldman@seas.gwu.edu (Michael Feldman)
Subject: Re: Run-time checking and speed
Date: 22 Jan 1995 13:43:14 -0500
Date: 1995-01-22T13:43:14-05:00	[thread overview]
Message-ID: <3fu902$6al@felix.seas.gwu.edu> (raw)
In-Reply-To: EACHUS.95Jan17151835@spectre.mitre.org

In article <EACHUS.95Jan17151835@spectre.mitre.org>,
Robert I. Eachus <eachus@spectre.mitre.org> 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



  parent reply	other threads:[~1995-01-22 18:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-10 22:20 Run-time checking and speed Tony Leavitt
1995-01-12  1:14 ` Roger Labbe
1995-01-13 12:09   ` Philip Brashear
     [not found] ` <3f0prq$3bq@theopolis.orl.mmc.com>
1995-01-12 14:13   ` Robert Dewar
1995-01-13  1:49     ` Doug Smith
1995-01-13 15:29       ` Norman H. Cohen
1995-01-13 15:21     ` Norman H. Cohen
     [not found]     ` <3fa2pk$kbi@felix.seas.gwu.edu>
     [not found]       ` <EACHUS.95Jan17151835@spectre.mitre.org>
     [not found]         ` <3fjhrj$9b3@oahu.cs.ucla.edu>
1995-01-20  5:11           ` Robert Dewar
1995-01-23 16:43             ` Mats Weber
1995-01-24 19:25               ` Robert Dewar
1995-01-22 18:43         ` Michael Feldman [this message]
1995-01-23 23:38           ` Robert Dewar
1995-01-26 16:14             ` Kent Mitchell
1995-01-28  6:03               ` Robert Dewar
     [not found]             ` <3gbr4f$p4b@theopolis.orl.mmc.com>
1995-01-29 13:00               ` Robert Dewar
1995-01-30 19:21                 ` Garlington KE
1995-01-12 15:11 ` Norman H. Cohen
  -- strict thread matches above, loose matches on Subject: below --
1995-01-12 15:54 Keith Arthurs
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox