[LLVMdev] Why are LLVM libraries enormous?

Reid Kleckner reid.kleckner at gmail.com
Wed Jul 28 10:57:02 PDT 2010

On Wed, Jul 28, 2010 at 9:01 AM, David Piepgrass
<dpiepgrass at mentoreng.com> wrote:
>> A LLVM JIT compiler for x86 under 1 MB? I doubt it is possible without
>> a major rewriting of LLVM.
> Even with no optimizations? Drat. That means I can't use it.

Why?  I'd never checked, but I always assumed the LLVM JIT was much
larger than 3.4 MB.

For comparison:
[rnk at tamalpais google3]$ du -h /usr/lib/gcc/x86_64-linux-gnu/4.4/cc1plus
10M	/usr/lib/gcc/x86_64-linux-gnu/4.4/cc1plus
[rnk at tamalpais google3]$ du -h `which python2.6`
2.5M	/usr/bin/python2.6

It seems reasonable that a JIT compiler with optimizers would weigh in
somewhere between an interpreter and a full C++ compiler.


More information about the llvm-dev mailing list