From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9903 invoked by alias); 15 Oct 2002 12:12:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 9896 invoked from network); 15 Oct 2002 12:12:17 -0000 Received: from unknown (HELO lars.boxcarmedia.com) (209.213.0.162) by sources.redhat.com with SMTP; 15 Oct 2002 12:12:17 -0000 Received: from josh (unknown [209.213.12.200]) by lars.boxcarmedia.com (Postfix) with SMTP id C75D0122DC8; Tue, 15 Oct 2002 08:12:16 -0400 (EDT) Message-ID: <004b01c27444$18093550$c800a8c0@pdc1.boxcarmedia.com> From: "Joshua Nye" To: "Michiel Buddingh'" , References: <20021014234939.GA35014@stack.nl> <003d01c273de$f0768bb0$0100a8c0@windows9q3yn19> <20021015002144.GA35401@stack.nl> <004d01c273e2$af2f48f0$0100a8c0@windows9q3yn19> <20021015014958.GA36140@stack.nl> Subject: Re: Giant executables.. what am I doing wrong? Date: Tue, 15 Oct 2002 05:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg00188.txt.bz2 If you run 'nm' on your pre-stripped executable you will see all the compiled in functions from the C library and any other libraries. When you do a static compile it doesn't just include only the needed function(s), but the entire C library .a file. That's why I recommended going with a smaller or more base-functionality C library such as newlib. --josh ----- Original Message ----- From: "Michiel Buddingh'" To: Sent: Monday, October 14, 2002 9:49 PM Subject: Re: Giant executables.. what am I doing wrong? > On Mon, Oct 14, 2002 at 08:34:55PM -0400, Joshua Nye wrote: > > Sounds like you might need a smaller C library then. Check out > > newlib or some other library and see if that fits your problem. > > I'm not that familiar with shrinking the C library. =) > > Although newlib does look interesting, I doubt the problem lies > with the C library. Unless I'm mistaken, system calls should have > little to do with the C library, as the program calls the kernel > directly. > This supports my suspicion that gcc is linking in a lot of stuff > I could do without. > -- > -- Michiel >