[LLVMdev] Reducing the size of LLVM and clang

Rafael Espindola espindola at google.com
Fri Jun 11 14:07:48 PDT 2010


On 10 June 2010 09:06, Robert Quill <robert.quill at imgtec.com> wrote:
> Hi all,
>
> We are looking to try and reduce the size of the clang and LLVM
> libraries and were wondering if anyone had any advice on how to do this.
> All we want is to be able to compile from a single language to a single
> back-end and for that back-end to emit instructions; we don't care about
> anything else. Currently we are building LLVM to use only our target, so
> that is OK. Is it possible to build clang with support for only one
> language? Or does anyone else have any tips about how to reduce the size
> of the libraries?

If you don't use plugins, dropping the --export-dynamic should help.

> Thanks for your help,
> Rob
>

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-dev mailing list