This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/28080] header dependencies



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]