comp.lang.ada
 help / color / mirror / Atom feed
From: cosby@greatwall.cctt.com (John Cosby)
Subject: Re: compilation time [was Re: Magnavox consultant]
Date: 21 Oct 1994 13:23:29 GMT
Date: 1994-10-21T13:23:29+00:00	[thread overview]
Message-ID: <388fci$i1g@babyblue.cs.yale.edu> (raw)
In-Reply-To: 386ls1$lu7@news.delphi.com

tmoran@bix.com wrote:
>> A 2200-line program is not likely to have many with clauses per
>> compilation unit.  ... cannot be assumed that this test scales up
>> to a large program with complex dependencies among compilation units.
>That raises the interesting question of how the number of with's
>scales with total program size in the real world.  Presumably in a
>good modular design it's much less than linear, but how much?  There
>are rules of thumb about 'a single module shouldn't be more than
>N lines' - should a single module not have more than M with's?

I'll have to vote against making that a hard and fast rule.  I've been writing 
X/Motif user interface code using Ada bindings for a couple of years, and I 
find the folks who generated the bindings subdivided their packages pretty
well.  Unfortunately, to get anything done with a complex window, I have
to with several packages; in one callback package, I have 7 with's for X,
X_Lib, and Xm packages, before I begin withing application packages to
call for services.  If there were a programmatic guideline that I could
only have M with's per N lines, I'd have had to apply for a waiver, unless
the M was set so high as to not really matter.

--- 
John Cosby - cosby@greatwall.cctt.com - cosbyj@nefarious.saic.com
  I've been porting bits of Ada back to C lately... my brain thinks it got 
  thrown into reverse....



  reply	other threads:[~1994-10-21 13:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-20 21:01 compilation time [was Re: Magnavox consultant] tmoran
1994-10-21 13:23 ` John Cosby [this message]
1994-10-23 15:24 ` Norman H. Cohen
     [not found] <38afut$8m9@news.delphi.com>
1994-10-24 11:15 ` Robert I. Eachus
1994-10-24 23:19   ` Bob Duff
1994-10-25  4:16     ` David Moore
1994-10-25 13:58     ` Norman H. Cohen
1994-10-25 23:33       ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1994-10-20  7:29 tmoran
1994-10-20 14:22 ` Norman H. Cohen
1994-10-20 18:15 ` Kent Mitchell
replies disabled

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