comp.lang.ada
 help / color / mirror / Atom feed
From: ncohen@watson.ibm.com (Norman H. Cohen)
Subject: Re: compilation time [was Re: Magnavox consultant]
Date: 20 Oct 1994 14:22:01 GMT
Date: 1994-10-20T14:22:01+00:00	[thread overview]
Message-ID: <385ue9$kh6@watnews1.watson.ibm.com> (raw)
In-Reply-To: 385686$501@news.delphi.com

In article <385686$501@news.delphi.com>, tmoran@bix.com writes: 

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

A 2200-line program is not likely to have many with clauses per
compilation unit.  The performance of some compilers is sensitive to the
number of with clauses, because of the time taken to read in the
associated information from the program library (so much so that the GNAT
team decided it would be faster to reparse the source of the with'ed
units).  Thus it cannot be assumed that this test scales up to a large
program with complex dependencies among compilation units.

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

It depends on the compiler.  The AIX Ada 6000 compiler, for example,
mimics the traditional "cc" command-line interface, allowing multiple
source files, .o files, and .a (archive) files to be specified on the
command line.  All the source files are compiled and the resulting object
files are linked with the other .o files named on the command line, using
archived object files as needed.  (This compiler, originally developed by
Oliver Cole Systems, is now maintained as an OCS product, under a new
name that slips my mind at the moment.)

--
Norman H. Cohen    ncohen@watson.ibm.com



  reply	other threads:[~1994-10-20 14:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-20  7:29 compilation time [was Re: Magnavox consultant] tmoran
1994-10-20 14:22 ` Norman H. Cohen [this message]
1994-10-20 18:15 ` Kent Mitchell
1994-10-20 19:05 ` compilation time [was Re: Magnavox consult Richard L. Conn
1994-10-25 18:08   ` Eric C. Newton
1994-10-25 22:23     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1994-10-20 21:01 compilation time [was Re: Magnavox consultant] tmoran
1994-10-21 13:23 ` John Cosby
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
replies disabled

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