RE: Compiling Template Instantiations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux