From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1157 invoked by alias); 14 Jul 2009 13:31:11 -0000 Received: (qmail 1138 invoked by uid 22791); 14 Jul 2009 13:31:10 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_51,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f227.google.com (HELO mail-fx0-f227.google.com) (209.85.220.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jul 2009 13:31:02 +0000 Received: by fxm27 with SMTP id 27so3158672fxm.30 for ; Tue, 14 Jul 2009 06:30:59 -0700 (PDT) Received: by 10.103.233.11 with SMTP id k11mr3420744mur.42.1247578259648; Tue, 14 Jul 2009 06:30:59 -0700 (PDT) Received: from smtp.gmail.com ([86.57.137.251]) by mx.google.com with ESMTPS id i7sm27089244mue.18.2009.07.14.06.30.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Jul 2009 06:30:59 -0700 (PDT) Date: Tue, 14 Jul 2009 13:31:00 -0000 From: Sergei Gavrikov To: Mandeep Sandhu Cc: Simon Kallweit , ecos-discuss@ecos.sourceware.org Message-ID: <20090714133457.GA361@sg-ubuntu.local> References: <4A5C453C.4090907@intefo.ch> <20090714103834.GA26638@sg-ubuntu.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] ecos memory footprint X-SW-Source: 2009-07/txt/msg00111.txt.bz2 On Tue, Jul 14, 2009 at 06:52:36PM +0530, Mandeep Sandhu wrote: > On Tue, Jul 14, 2009 at 6:47 PM, Mandeep > Sandhu wrote: > > After a lot of help from you all, me the n00b, finally got to compile > > my first "hello world" app > > for the at91sam7ex board running ecos. > > > > Here's the o/p of arm-eabi-size for my hello app: > > > > ~/ecos/ecos-3.0/examples$ arm-eabi-size hello > >   text    data     bss     dec     hex filename > >  34952    1552    9480   45984    b3a0 hello > > > > So, does this mean my runtime mem usage will be text + bss (i.e around 44KB)? if your startup is ROM, that amount of RAM is used will be .data + .bss and rest of it will be used for heap http://en.wikipedia.org/wiki/Data_segment http://en.wikipedia.org/wiki/Code_segment http://en.wikipedia.org/wiki/.bss http://en.wikipedia.org/wiki/Dynamic_memory_allocation Try srm-eabi-ize -Ax appname to observe ieven more Sergei > > Sorry, I meant text+data+bss = 44KB > > -mandeep > > > > Thanks as always, > > -mandeep > > > > On Tue, Jul 14, 2009 at 4:33 PM, Mandeep > > Sandhu wrote: > >> On Tue, Jul 14, 2009 at 4:08 PM, Sergei > >> Gavrikov wrote: > >>> Mandeep Sandhu wrote: > >>> > >>>> W/o the USB feature and rest of the basic stuff including lwIP stack > >>>> enabl3d, I'm getting around 1.2MB in size! > >>> > >>> Refer eCos FAQ > >>> http://ecos.sourceware.org/fom-serv/ecos/cache/91.html > >> > >> wow...that was an eye-opener! :) Thanks! > >> > >> So...now I need to compile my app...a webserver and see how much > >> it takes. > >> > >> -mandeep > >> > >>> > >>> $ -size app > >>> > >>> > >>> Sergei > >>> > >> > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss