From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4178 invoked by alias); 15 Oct 2002 09:38:16 -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 4167 invoked from network); 15 Oct 2002 09:38:13 -0000 Received: from unknown (HELO wh2-19.st.uni-magdeburg.de) (141.44.162.19) by sources.redhat.com with SMTP; 15 Oct 2002 09:38:13 -0000 Received: by wh2-19.st.uni-magdeburg.de (Postfix, from userid 1000) id 1AAB490F60; Tue, 15 Oct 2002 11:38:16 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15787.57861.139804.37266@wh2-19.st.uni-magdeburg.de> Date: Tue, 15 Oct 2002 02:38:00 -0000 From: "Claudio Bley" To: "Michiel Buddingh'" Cc: gcc-help@gcc.gnu.org Subject: Re: Giant executables.. what am I doing wrong? In-Reply-To: <20021015014958.GA36140@stack.nl> References: <20021014234939.GA35014@stack.nl> <003d01c273de$f0768bb0$0100a8c0@windows9q3yn19> <20021015002144.GA35401@stack.nl> <004d01c273e2$af2f48f0$0100a8c0@windows9q3yn19> <20021015014958.GA36140@stack.nl> X-SW-Source: 2002-10/txt/msg00184.txt.bz2 >>>>> "Michiel" == Michiel Buddingh' writes: Michiel> On Mon, Oct 14, 2002 at 08:34:55PM -0400, Joshua Nye Michiel> 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. =) Michiel> Although newlib does look interesting, I doubt the Michiel> problem lies with the C library. Unless I'm mistaken, Michiel> system calls should have little to do with the C library, Michiel> as the program calls the kernel directly. This supports Michiel> my suspicion that gcc is linking in a lot of stuff I Michiel> could do without. -- -- Michiel Of course, write(2) is a system call, but nonetheless you need an entry point somewhere to call that function from your program. That's why gcc links in the C library which defines write as a weak symbol (at least on my machine). -- Claudio Bley ASCII ribbon campaign (") Debian GNU/Linux advocate - against HTML email X http://www.cs.uni-magdeburg.de/~bley/ & vCards / \