On Mon, 23 Jul 2007 11:05:54 -0700, Paul Pluzhnikov <[EMAIL PROTECTED]> wrote: > Ignoramus3627 <[EMAIL PROTECTED]> writes: > >> We have a library that has 179385 lines of code. >> With GCC, no debug information requested (no -g option) it creates a >> 31 meg long .a library file. >> >> I think that it is excessive. Any idea what I can do to reduce the >> size? > > You can try to understand where that size comes from -- extract a > couple of .o files from the library, and examine what they are > comprized of (exact commands for this are system specific, and you > provided no clues what your platform might be).
Linux, GCC 4.1. > It is likely that you have many template instances repeated into > every .o. When you link final executable, only one copy is linked > in on most platforms, so the size of lib*.a is usually of little > concern (disk space is cheap). > interesting. Thanks i _______________________________________________ help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
