[cfe-dev] [llvm-dev] Why do we static link all llvm libraries in every executable?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed Jan 27 04:09:48 PST 2016


On Wed, Jan 27, 2016 at 09:21:33AM +0000, David Chisnall via cfe-dev wrote:
> On 26 Jan 2016, at 21:32, Yin Ma via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> > 
> > 10x slower..on Linux? If we limit the number of global symbols exposed, it will 
> > help the situation?
> 
> 10x slower seems like an exaggeration.

Test program is just "int main(void) { return 0; }":

Monolithic clang as used by NetBSD's cross build system: 0.008s
Shared clang using normal cmake build: 0.139s

Both optimised builds with asserts enabled.

Joerg



More information about the cfe-dev mailing list