This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Compiling Template Instantiations
- From: lrtaylor at micron dot com
- To: <marin at Instinet dot com>, <gcc-help at gcc dot gnu dot org>
- Cc: <tmm at comcast dot net>
- Date: Wed, 12 Nov 2003 14:32:00 -0700
- Subject: RE: Compiling Template Instantiations
This isn't necessarily related to your problem, but you should be
including iostream instead of iostream.h. iostream.h is deprecated (not
part of ANSI C++) and will likely not be supported at some point in the
future.
As for your problem, you might look into the -functsect argument to GCC
and -combreloc argument to ld. I think both of these have the potential
of reducing your executable's size by removing duplicate function
definitions, etc.
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Tom marin
I am including iostream.h into many of my C++ modules. Apparently the
object files generated are quite large because of the Templates in
iosteam.h. I am using the C++ compiler g++ version 3.3.
Is there anyway around this problem of code bloat when using existing
Templates provided with the compiler.
Thanks in advance.
- Tom