This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Precompiled headers in egcs? (was MFC with egcs 1.1)


On 13 Oct 98 at 9:21, Don Sharp <dwsharp@iee.org> wrote:

> My lengthy experience with pre-compiled headers, mainly with Borland
> compilers, shows that unless the sequence of your include files is
> always the same then the pre-compiled header database grows like topsy.
> My memory is of a 54Mb precompiled header database for a ~4Mb total
> source file project. Still disc space is cheap and the database lookups
> may be
> fast enough even when the database becomes large.
> 

You suggest an interesting benchmark: to compile applications with 
huge include file sets, and to assess the precompiled header length 
and compilation speed with and without precompiled headers.

That comparison would have to use several commercial compilers.  If 
you want my opinion, i think Borland isn't the leader in compiler 
writing anymore, but the Redmond people. :-(  So, i'm not very 
impressed with their figures.

> A better answer might be an automated way to remove spacing and
> comments from header files and save them in a special directory. I
> believe that it was Jacob Navia who reported major speed
> improvements as a result.
> 

Navia's idea is very interesting and seem to defy a programmer's 
idea: you can use any comments and spacing that you want and still 
have the same compilation speed.

However, to automatically uncomment, remove spacing and save in a
special directory can still be considered a form of precompiled
header creation.

> Cheers
> 
> Don Sharp
> 
> -

Best regards,
--Hilton
-------------------
Hilton Fernandes, M. Sc
email: hgfernan@usp.br
Parallel Distributed Applications 
at Escola Politecnica (Polytechnic School)
University of S. Paulo - Brazil
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]