From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4056 invoked by alias); 6 Jun 2006 14:19:00 -0000 Received: (qmail 4046 invoked by uid 22791); 6 Jun 2006 14:19:00 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Jun 2006 14:18:57 +0000 Received: by wr-out-0506.google.com with SMTP id 71so1373756wri for ; Tue, 06 Jun 2006 07:16:27 -0700 (PDT) Received: by 10.65.250.16 with SMTP id c16mr4564314qbs; Tue, 06 Jun 2006 07:16:27 -0700 (PDT) Received: by 10.64.180.15 with HTTP; Tue, 6 Jun 2006 07:16:27 -0700 (PDT) Message-ID: Date: Tue, 06 Jun 2006 14:19:00 -0000 From: "Socrates Socrates" To: "Socrates Socrates" , ecos-discuss@ecos.sourceware.org In-Reply-To: <20060606140356.GJ15066@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060606133735.GH15066@lunn.ch> <20060606140356.GJ15066@lunn.ch> 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/msg00055.txt.bz2 ~/work/atmel$ arm-elf-size test text data bss dec hex filename 55855 968 25680 82503 14247 test I noticed -r was the raw "mode" and just did not know any better. And one more thing, since I did not edit/change the target.ld (created by ecosconfig), I suppose will need to change it as well? I am much appreciating your help Andrew. Thanks. On 6/6/06, Andrew Lunn wrote: > 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