Content originally posted in LPCWare by graynomad on Sun Jul 29 07:37:19 MST 2012
Well __end_of_heap has turned up in the debugger's "variable" window, I have no idea where it came from, at least I can see the value and it looks like a malloc(1) actually allocates 12 bytes for some sort of structure plus the 1 byte you asked for. Add the word alignment and you lose 16 bytes in all.
Is there any way to get __end_of_heap programatically? EDIT: Never mind, I figured it out...don't ask :o
The map file now looks normal, maybe the last time I looked it was after a failed build and therefore was it not complete.
There are a few things of mine (globals) taking space but the worst offender is something called __Ciob that needs 320 bytes. Yikes! It's from stdio, something to do with printf maybe?
I'm learning good stuff but really all I wanted to do was write a test for free ram and move on to more interesting things.