From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24923 invoked by alias); 15 Oct 2002 00:35:13 -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 24912 invoked from network); 15 Oct 2002 00:35:10 -0000 Received: from unknown (HELO lars.boxcarmedia.com) (209.213.0.162) by sources.redhat.com with SMTP; 15 Oct 2002 00:35:10 -0000 Received: from windows9q3yn19 (pool-151-203-145-112.wma.east.verizon.net [151.203.145.112]) by lars.boxcarmedia.com (Postfix) with SMTP id AF7BF122DC2; Mon, 14 Oct 2002 20:35:09 -0400 (EDT) Message-ID: <004d01c273e2$af2f48f0$0100a8c0@windows9q3yn19> From: "Joshua Nye" To: "Michiel Buddingh'" , References: <20021014234939.GA35014@stack.nl> <003d01c273de$f0768bb0$0100a8c0@windows9q3yn19> <20021015002144.GA35401@stack.nl> Subject: Re: Giant executables.. what am I doing wrong? Date: Mon, 14 Oct 2002 17:35: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.2600.0000 X-SW-Source: 2002-10/txt/msg00177.txt.bz2 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. =) http://sources.redhat.com/newlib/ --josh ----- Original Message ----- From: "Michiel Buddingh'" To: Sent: Monday, October 14, 2002 8:21 PM Subject: Re: Giant executables.. what am I doing wrong? > On Mon, Oct 14, 2002 at 08:08:06PM -0400, Joshua Nye wrote: > > Are you sure you want to create a static executable? > > Yes. :) > > > If you are trying to > > save memory, shared executables are probably better. > > True. But the system I'm programming for is going to be severely > limited in memory. Limited to 4 MB of RAM, to be exact. It is not > going to have virtual memory, and disk space will be less than 1 MB. > Furthermore, I expect it's perfectly feasible to implement the > program I'm writing using system calls only. Given that, it doesn't > make sense to build it as a shared executable. > > -- > -- Michiel >