This is the mail archive of the 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: Redboot/eCos memory usage

On Saturday 03 December 2005 09:55, R S wrote:
> Hi:
> Thanks a lot for your input.
> The arena size is:
> ARENA SIZE = 133956528 Bytes ~ 127.7 MB which is very close to the 128 that
> my target has.
> Also if ecos application has addresses ranging from 0xc00171e8 up to
> 0xc7fd1000, how can heap be that large. Doesn't this mean ecos app have
> approx 8MB of space.
> What am I missing here???

From the redboot output:

Platform: BRH (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0xc0000000-0xc8000000, 0xc00171e8-0xc7fd1000 available
FLASH: 0x00000000 - 0x00400000, 32 blocks of 0x00020000 bytes each.

$ irb
irb(main):001:0> 0xc7fd1000-0xc00171e8
=> 133930520
irb(main):002:0> (0xc7fd1000-0xc00171e8)/(1024.0*1024)
=> 127.726097106934

This means your application has 133930520 bytes = 127.7 MB memory available. 
The heap will take all space which is not used by your application (code, 
static data, global data, const data). So if your application uses more 
(static) memory, the available heap size will automatically shrink.

Here you can find more information about the sections:

Work: -
Home:                -               -

Before posting, please read the FAQ:
and search the list archive:

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