delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/15/19:02:11

Message-ID: <38D00E61.17076E64@caresystems.com.au>
Date: Thu, 16 Mar 2000 08:27:45 +1000
From: leon <Leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: precompiled headers and djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000315105130 DOT 17230O-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Wed, 15 Mar 2000, leon wrote:
> 
> > Eli Zaretskii wrote:
> > > Do you have any problems with GCC compilation speed?  It takes a few
> > > seconds on any mildly modern CPU (unless you compile a 10,000-line
> > > source file), so how much can be gained by storing precompiled header
> > > files, anyway?
> >
> >       wouldn't it depend on how many source files are using the contents of
> > such a precompiled header?
> 
> I have difficulty understanding the question, sorry.
> 
> What would depend on the amount of files?
	
	the efficiency / speed of compilation advantage when using precompiled
header.

	from watcom help files on precompiled headers:
	"Using precompiled headers reduces compilation time when:
...
	Your program comprises multiple modules, all of which use the same
first #include file and the same compilation options. In this case, the
first #include file along with all the files that it includes can be
precompiled into one precompiled header.
"

	With best regards - Leon.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019