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: Re: Memory footprint


On Wed, 2006-05-10 at 17:19 +0200, Andrew Lunn wrote:
> On Wed, May 10, 2006 at 09:53:42AM -0500, Grant Edwards wrote:
> > >> what does arm-elf-size say?
> > >
> > > $ arm-elf-size.exe a.out
> > >     text    data     bss     dec     hex filename
> > >    41920    1512    8028   51460    c904 a.out
> > >
> > > I suppose that this means the binary will be 51460Kb in size?
> > 
> > That means the binary will require 43432 bytes of ROM
> > (41920+1512) and 9540 bytes of RAM (8028+1512).
> 
> I suppose i should read the man page, but couldn't part of data be
> rodata and so will not be copied to RAM at startup?
> 
> [Goes and reads the man page]
> 
> There is no mention of the rodata. Hum...

The read-only data section will be included in the "text" segment
as printed by this tool.  If you want to see the details of how
things are really laid out, use objdump -h.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
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]