[LLVMdev] speed and code size issues

Eli Friedman eli.friedman at gmail.com
Fri Jul 17 16:41:55 PDT 2009

On Fri, Jul 17, 2009 at 4:14 PM, Jonathan Gray<jsg at goblin.cx> wrote:
> This seems to go against notes such as
> http://clang.llvm.org/features.html#performance
> which claim clang is signifcantly faster than gcc.

I think the URL you want is actually
http://clang.llvm.org/performance.html.  The difference isn't as
dramatic when you consider code generation, at least for the moment.

> Below are some times and the larger object files when
> compiling an i386 OpenBSD kernel at -O2 on an Intel Atom
> based laptop.  The significantly larger code size
> is rather disturbing as it means binaries can't fit on
> space constrained installation media for example.

Are you building with -g?  The debug info implementation is known to
be relatively inefficient.


More information about the llvm-dev mailing list