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

2015-09-24 Thread chen xu via cfe-users
That's very helpful. Thanks a lot. I will try them out. By the way, when linking two libraries, say, they both instantiate classes from the same template class (e.g. defined in a 'common' component), into an executable, will the linker remove the duplicate class instance? Date: Thu, 24 Sep

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

2015-09-24 Thread David Blaikie via cfe-users
On Thu, Sep 24, 2015 at 3:12 PM, chen xu wrote: > Thanks, David. The build type is Debug. Today I tried removing the debug > info (-g), the size of the executable could be cut 90%, to around 100MB, > which looks not bad. Do you know whether there is a way to separate debug > info file from the e

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

2015-09-24 Thread chen xu via cfe-users
Thanks, David. The build type is Debug. Today I tried removing the debug info (-g), the size of the executable could be cut 90%, to around 100MB, which looks not bad. Do you know whether there is a way to separate debug info file from the executable file on Linux? Mainly our code is already the