From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15097 invoked by alias); 6 Jun 2006 14:05:38 -0000 Received: (qmail 15075 invoked by uid 22791); 6 Jun 2006 14:05:37 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Jun 2006 14:04:17 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FncA0-0002df-00; Tue, 06 Jun 2006 16:03:56 +0200 Date: Tue, 06 Jun 2006 14:05:00 -0000 To: Socrates Socrates Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20060606140356.GJ15066@lunn.ch> Mail-Followup-To: Socrates Socrates , ecos-discuss@ecos.sourceware.org References: <20060606133735.GH15066@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Huge memory footprint for a simple "hello world" X-SW-Source: 2006-06/txt/msg00054.txt.bz2 On Tue, Jun 06, 2006 at 03:57:26PM +0200, Socrates Socrates wrote: > Thanks Andrew, > > Certainly I am new to embedded systems indeed. I now run: > /arm-elf-ld -nostartfiles -nodefaultlibs -nostdlib -s -static > -L/opt/ecos/gnutools/arm-elf/arm-elf/lib > -L/opt/ecos/gnutools/arm-elf/lib/gcc-lib/arm-elf/3.2.1/ -o test test.o > -Ttarget.ld > > So the size is now down to (~91k): > -rwxr-xr-x 1 socrates socrates 91364 Jun 6 14:07 test > > which I think is still big in my opinion. and what does arm-elf-size say? > -b option: The upload always fails until I use the -r option which > forces me to use the -b option. > How do I go about getting a succesful upload without using the -r and > hence -b option? If you upload the elf file you don't want -r otherwise the raw elf file will be loaded as is. Redboot knows how to process an elf to extract the executable code and data. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss