This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Speed test
- To: egcs at cygnus dot com (egcs at cygnus dot com)
- Subject: Speed test
- From: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Date: Sat, 20 Jun 1998 14:50:03 +0200 (CEST)
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).