[LLVMdev] llvm-ld question

Yuri yuri at tsoft.com
Fri May 7 21:23:17 PDT 2010


shreyas krishnan wrote:
> Hi
>    If I am linking a large library with my app, is there a way I can
> eliminate all the unused functions used in the library as part of the
> linking ?
>   

If you are talking about static libraries (.a), this is done 
automatically by linker.
You shouldn't have to worry about this.
If you are talking about the shared library (.so) -- it will be loaded 
into memory unchanged. Not much you can do to reduce it's size.

Yuri



More information about the llvm-dev mailing list