This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using templates in shared library



> a) he who uses shared libraries always has to include code that is
>    useless to some application; linking statically gives better ways
>    to omit unneeded things

He who's always linking statically has been sleeping for the last
decade or so. I can't make modular systems with re-usable code if
everything is in one binary.

> b) why do you care about the duplicate instantiations? Your program
>    still should work, it is just using somewhat more disk space.

In my case, it's at least 3 times as big as necessary ('library 1' of
my example is rather big, while 'library 2' happens to be fairly
small). If it was something like 10% I could live with it, now it just
looks really stupid.

Those code duplications will have to be downloaded by people as
well. Most people still feel the difference when your binary goes up
in size by a factor of 3.

Kasper


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]