I’ve been getting the impression for a while that the GCC C Compiler has been getting slower over time at compiling. To check whether this was in fact true, I timed building a popular software package (emacs) with each major version of the compiler that I could get ahold of. I also added in a few other compilers, for reference.
For the benchmark, I built the temacs part of the GNU emacs distribution (version 22.3). System used is a 1.6GHZ AMD Sempron, 512MB RAM, running Fedora 13.
The compilers used were:
- gcc – The GNU C Compiler – the standard system compiler on virtually all Linux distributions.
- llvm – Low-Level Virtual Machine – a new(ish) compiler being developed by Apple and the University of Illinois. It uses the new clang front-end.
- icc – The Intel C++ Compiler – Intel’s own compiler, known for aggressive optimizations.
- pcc – The Portable C Compiler – a modernized version of the original BSD Unix system compiler.