From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26633 invoked by alias); 5 Jun 2003 19:47:54 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26368 invoked from network); 5 Jun 2003 19:47:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Jun 2003 19:47:50 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h55JloH16415; Thu, 5 Jun 2003 15:47:50 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h55JlnI26250; Thu, 5 Jun 2003 15:47:49 -0400 Received: from localhost.localdomain.redhat.com (vpn50-2.rdu.redhat.com [172.16.50.2]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h55Jlj601053; Thu, 5 Jun 2003 15:47:47 -0400 To: Michael Snyder Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com Subject: Re: RFC: strip --strip-nondebug References: <3EDF8C1C.5D5067DE@redhat.com> From: Nick Clifton Date: Thu, 05 Jun 2003 19:47:00 -0000 In-Reply-To: <3EDF8C1C.5D5067DE@redhat.com> (Michael Snyder's message of "Thu, 05 Jun 2003 11:29:48 -0700") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-06/txt/msg00218.txt.bz2 Hi Michael, > How big a reduction in size would you expect, typically? > I'm a little ignorant, but what strippable info is in there > that gdb doesn't need? Quite a lot it would seem. I have not done any rigorous studies but I did try out a simple hello world program: compiled hello executable: 11999 bytes after strip --strip-debug: 4350 bytes after strip --strip-all: 2772 bytes after strip --strip-nondebug 6725 bytes So even taking a debug stripped executable and its associated debug file, the combined size is 4350 + 6725 = 11075 which is less than the original. Of course the patch does not work properly yet. (GDB does not seem to find/understand the debug info file) so the sizes will probably change). But in the normal case of running an program, having an executable that is significantly smaller must surely result in some performance benefits. Cheers Nick