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]

Speed test


My personal project `libr' uses templates very extensively.

I compiled it several times with both compilers, and
egcs is significantly slower.  I wonder if that is
something that could be expected, and if so, why?

Carlo

PS1

Fastest compile time with egcs-1.0.3a: 2 minutes 19 seconds.
Slowest compile time with egcs-1.0.3a: 2 minutes 26 seconds.
Fastest compile time with gcc-2.8.1  : 2 minutes  8 seconds.
Slowest compile time with gcc-2.8.1  : 2 minutes 15 seconds.

PS2

commandline parameters used:
egcs++ -ggdb -Wall -Wno-return-type -Woverloaded-virtual -Wpointer-arith -Winline -Werror -pipe -fpic -I../include -I. -I-  -c version.cc -o version.o

Using -Wno-return-type only decreased the compile time with 1 second (I have plenty of RAM).


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