This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/28080] header dependencies
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2006 15:33:22 -0000
- Subject: [Bug libstdc++/28080] header dependencies
- References: <bug-28080-8082@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from chris at bubblescope dot net 2006-06-23 15:33 -------
(In reply to comment #4)
> Subject: Re: header dependencies
>
> On Monday 19 June 2006 11:29, pcarlini at suse dot de wrote:
> > ------- Comment #1 from pcarlini at suse dot de 2006-06-19 09:29
> > Ok, let's see what we can do...
>
> Wow, fast reply! I hope you're successful :-) Maybe you could look at
> STLPort 5.x, AFAIK it's "more" efficient in this case. It also has
> other nice features like:
>
> - STL containers vector, deque, list and slist pointer specialization to
> limit code bloats (see _STLP_USE_PTR_SPECIALIZATIONS on config file);
>
I haven't looked at STLPort's implemenetation of this. However, this will make
the problem of too much preprocessed source worse, not better, as it will
involve more code, although the eventual executable might be smaller.
I did implement a version of this myself, basically by writing a mapper around
each container that did a few static_casts and mapped the functions to a void*
version of the container. However, having a whole new bunch of inline functions
causes problems for the compiler, without providing (as far as I could measure)
significant reductions in the size of the executable.
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28080