This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Suggestions for improving gcc 3.2 compilation speed?


On Fri, 7 Mar 2003, Mike Stump wrote:

> On Friday, March 7, 2003, at 03:09 AM, Biagio Lucini wrote:
> > Could you give me an example of a fast compiler? My only term of
> > comparison is the Intel one, and with it it takes ages to compile the
> > most
> > trivial program.
>
> I have a g++ compiler that is 5.6x faster than the current g++ when
> compiling large C++ code bases.  That's when compared to a g++ PCH,
> without it, more like 8x to 16x faster when PCH isn't used.  Work in
> progress, but it shows that g++ can be fast, if we want it to be.  For
> trivial files, small projects and single files, the speedup is 0.
>

I'm interested in testing it, but unfortunatelly it doesn't apply cleanly
(I suppose you are talking about main-trunk):

thinkpad:~/cvs/gcc/c++-multitrans/gcc$ patch -p0 < /tmp/multiunit.diffs
patching file tree.c
Hunk #1 succeeded at 96 (offset 1 line).
patching file cp/call.c
Hunk #1 succeeded at 5467 (offset -129 lines).
Hunk #2 succeeded at 5776 (offset -132 lines).
patching file cp/cp-tree.h
Hunk #1 succeeded at 3521 with fuzz 1 (offset -11 lines).
patching file cp/decl.c
Hunk #1 succeeded at 288 (offset -12 lines).
Hunk #2 succeeded at 3234 (offset -89 lines).
Hunk #3 succeeded at 3838 (offset -103 lines).
Hunk #4 succeeded at 9381 (offset -519 lines).
patching file cp/decl2.c
Hunk #1 succeeded at 3504 (offset -442 lines).
patching file cp/lex.c
Hunk #1 succeeded at 54 with fuzz 2 (offset -6 lines).
Hunk #2 FAILED at 684.
Hunk #3 succeeded at 685 with fuzz 1 (offset -483 lines).
1 out of 3 hunks FAILED -- saving rejects to file cp/lex.c.rej
patching file cp/semantics.c
Hunk #1 succeeded at 1772 (offset 86 lines).
Hunk #2 FAILED at 1878.
1 out of 2 hunks FAILED -- saving rejects to file cp/semantics.c.rej
thinkpad:~/cvs/gcc/c++-multitrans/gcc$

Against which version exactly is this patch?

Thanks,

Karel
--
Karel Gardas                  kgardas at objectsecurity dot com
ObjectSecurity Ltd.           http://www.objectsecurity.com


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