This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.3 compile speed regression - THE GRAPH
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 10 Feb 2003 06:25:00 +1100
- Subject: Re: GCC 3.3 compile speed regression - THE GRAPH
- References: <0045B60F-3ADE-11D7-9ED6-000393673036@apple.com>
Those who are interested in compilation speed may be interested in
the Tiny C Compiler, tcc <http://fabrice.bellard.free.fr/tcc/>.
I tried several C compilers on some C code generated by the Mercury
compiler, with the following results:
compiler version options compilation time
-------- ------- ------- ----------------
gcc 2.95.4 -c -O2 ... 5.53
gcc 2.95.4 -c -O1 ... 3.19
gcc 2.95.4 -c -O0 ... 2.65
lcc 4.1 -c 1.04
tcc 1.9.16 -c 0.34
Obviously gcc has room for improvement!
P.S.
Some details:
- tests carried out on a 1100MHz AMD Athlon
64kb L1 icache, 64kb L1 dcache, 256k L2 cache, 256Mb RAM
Debian GNU/Linux 3.0
binutils version 2.12.90.0.1 20020307
- "..." above is "-fomit-frame-pointer -ansi -Wall -Wwrite-strings -Wshadow
-Wstrict-prototypes -Wmissing-prototypes -Wno-unused -Wno-uninitialized".
There were also a few "-I" options passed to all C compilers.
- test code produced by `mmc -C -H tree234.m' using tree234.m from
the library directory in the Mercury 0.11.0 distribution.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.