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).

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).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to