comp.lang.ada
 help / color / mirror / Atom feed
* Re: compilation time [was Re: Magnavox consultant]
@ 1994-10-20 21:01 tmoran
  1994-10-21 13:23 ` John Cosby
  1994-10-23 15:24 ` Norman H. Cohen
  0 siblings, 2 replies; 11+ messages in thread
From: tmoran @ 1994-10-20 21:01 UTC (permalink / raw)


> 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?



^ permalink raw reply	[flat|nested] 11+ messages in thread
* compilation time [was Re: Magnavox consultant]
@ 1994-10-20  7:29 tmoran
  1994-10-20 14:22 ` Norman H. Cohen
  1994-10-20 18:15 ` Kent Mitchell
  0 siblings, 2 replies; 11+ messages in thread
From: tmoran @ 1994-10-20  7:29 UTC (permalink / raw)


I just observed a make, compile with full optimization, and link
of 2200 lines in 24 source files, in almost exactly one minute
on my 486 (Janus Ada 83 compiler).  That translates to about 22
million lines in a solid week.  But if the source files are
small, and the compiler is loaded once for each file, and there
is inadequate disk caching, things could go downhill in a hurry.
My limited experience is that C compilers generally load once,
with a bunch of source files on the command line, while Ada
compilers more often compile one file per compiler invocation.
Is that generally true?



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1994-10-25 23:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <38afut$8m9@news.delphi.com>
1994-10-24 11:15 ` compilation time [was Re: Magnavox consultant] 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
1994-10-20 21:01 tmoran
1994-10-21 13:23 ` John Cosby
1994-10-23 15:24 ` Norman H. Cohen
  -- 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

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