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: malloc1 test and posix stdio fails


>  16 .bss          00004d4c  81200bf8  81200bf8  00028bf8  2**4
>                   ALLOC
> -----------------------------------------------------------------
> and a dump showing __heap1
> 
> 81205948 A __heap1
> 81200ac0 D cygmem_memalloc_heaps
> 812033b4 B cygmem_pool_heap1
> 
> ---------------------------
> 
> Hmm. If I do the arithmetic and I understand things correctly,
> 
> my heap pointer __heap1 = 8120 5948
> which is 4 bytes past the end of bss = ( 8120 0bf8 + 0000 4d4c ) = 
> 0x8120 5944
> 
> which would seem to be incorrect. My RAM allocation (as per my linker 
> file sent in previous message) ends at 8120 0000 + 20 0000 = 8140 0000
> 
> Therefore I conclude __heap1 is sent incorrectly.

_heap1 is the start of the heap. It is normally directly after the bss
and goes to the top of memory. So you heap should be 0x81205948 -
0x81400000

So this looks O.K. I think the problem is somewhere else.

   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


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