From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22291 invoked by alias); 23 Jun 2006 15:33:31 -0000 Received: (qmail 22262 invoked by uid 48); 23 Jun 2006 15:33:22 -0000 Date: Fri, 23 Jun 2006 15:40:00 -0000 Message-ID: <20060623153322.22261.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/28080] header dependencies In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "chris at bubblescope dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg02140.txt.bz2 List-Id: ------- 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