Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-25 Thread chen xu via cfe-users
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

Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-25 Thread David Blaikie via cfe-users
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

Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-24 Thread chen xu via cfe-users
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

Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-24 Thread David Blaikie via cfe-users
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

Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-24 Thread chen xu via cfe-users
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

Re: [cfe-users] optimize template-heavy project with duplicate code removal

2015-09-23 Thread David Blaikie via cfe-users
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