Mail Archives: djgpp/2000/03/15/19:02:11
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 -