This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ecos memory footprint


On Tue, Jul 14, 2009 at 06:52:36PM +0530, Mandeep Sandhu wrote:
> On Tue, Jul 14, 2009 at 6:47 PM, Mandeep
> Sandhu<mandeepsandhu.chd@gmail.com> 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<mandeepsandhu.chd@gmail.com> wrote:
> >> On Tue, Jul 14, 2009 at 4:08 PM, Sergei
> >> Gavrikov<sergei.gavrikov@gmail.com> 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
> >>
> >>>
> >>> $ <prefix>-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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]