From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26304 invoked by alias); 21 May 2012 18:08:31 -0000 Received: (qmail 26168 invoked by uid 22791); 21 May 2012 18:08:28 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 May 2012 18:08:16 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4LI84cq005978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 21 May 2012 14:08:16 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4LGq9bZ022455; Mon, 21 May 2012 12:52:10 -0400 Message-ID: <4FBA72B9.9010103@redhat.com> Date: Mon, 21 May 2012 18:08:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Jan Kratochvil CC: Tom Tromey , gdb@sourceware.org Subject: Re: Will therefore GDB utilize C++ or not? References: <20120330161403.GA17891@host2.jankratochvil.net> <87aa2rjkb8.fsf@fleche.redhat.com> <4F832D5B.9030308@redhat.com> <87ehqhfenc.fsf@fleche.redhat.com> <4FBA6583.5000002@redhat.com> <20120521161456.GA5429@host2.jankratochvil.net> In-Reply-To: <20120521161456.GA5429@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00106.txt.bz2 On 05/21/2012 05:14 PM, Jan Kratochvil wrote: > On Mon, 21 May 2012 17:55:47 +0200, Pedro Alves wrote: >> In my quick experiment adding a cout << "foo" (-static-libstdc++ -flto -Os >> + strip) more than triples the binary size. > > Could you give specific still used device example where the current codebase > is OK while the triple gdbserver size is no longer OK? All the discussions > are still very abstract. I should point out that that question is a bit backwards. If you can shrink the storage to save costs, you'll do it. But obviously you won't shrink more than what necessary to run your software. That - shrink storage - is the reasoning why e.g., one feature eglibc has over glibc, is a way to configure out things that may not be needed on an embedded system. Google around for OpenWrt or DD-WRT for example, to find configurations where 4-32MB flash is common. -- Pedro Alves