I see. Thank you very much, David.
Date: Fri, 25 Sep 2015 10:51:35 -0700
Subject: Re: [cfe-users] optimize template-heavy project with duplicate code
removal
From: dblai...@gmail.com
To: chen...@outlook.com
CC: cfe-users@lists.llvm.org
On Thu, Sep 24, 2015 at 4:46 PM, chen xu wrote
ce the
duplicates will be removed)
>
>
> --
> Date: Thu, 24 Sep 2015 15:29:09 -0700
>
> Subject: Re: [cfe-users] optimize template-heavy project with duplicate
> code removal
> From: dblai...@gmail.com
> To: chen...@outlook.com
> CC: cfe-users@lists.l
Date: Thu, 24 Sep 2015 15:29:09 -0700
Subject: Re: [cfe-users] optimize template-heavy project with duplicate code
removal
From: dblai...@gmail.com
To: chen...@outlook.com
CC: cfe-users@lists.llvm.org
On Thu, Sep 24, 2015 at 3:12 PM, chen xu wrote:
Thanks, David. The build type is Debug
e.
>
Not sure, off hand, whether Clang supports that.
>
> --
> Date: Wed, 23 Sep 2015 16:59:04 -0700
> Subject: Re: [cfe-users] optimize template-heavy project with duplicate
> code removal
> From: dblai...@gmail.com
> To: chen...@outlook.com
> CC
there, refactoring
might require big effort.. Also, does clang support -fno-implicit-templates? if
yes, maybe we could use it to eliminate duplicate template instances to control
the final size.
Date: Wed, 23 Sep 2015 16:59:04 -0700
Subject: Re: [cfe-users] optimize template-heavy project with
debug or non-debug build?
& no, for a full release build, measuring the final executable size,
there's not much you can do with the compiler.
you can try to factor common portions out of your templates (eg: remove
template parameters where possible - if, for example, a member function of
a class
Hi, our project heavily uses c++ template, and the resulting executable is
almost 1.5G Bytes, which is too big to be acceptable. Adding -O2 or -Os does
not seem helping. Is there any way (like link option, etc) to reduce the size?
__