Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4959

SDK • Re: Proper way to get Heap size

$
0
0
A little more clean up and some checks added and I think it's working correctly
Excellent news. Any insights into why it wasn't ?

The only other tip I can offer is, when printing labelled memory addresses, print them in what is expected to be ascending address order. That way it's easier to understand what your labelling means and verify they have sensible and logically correct addresses. Any out-of-order address will stand out like a sore thumb if something does need investigating and fixing.

For example your earlier list -

Code:

__bss_end__         : 20001D80__end__             : 20001D80Heap_size           : 240256Heap top            : 2003C800Heap limit          : 20040000Stack limit         : 20040000Stack Bottom        : 20040800Stack Top           : 20041000Stack One Bottom    : 20042000Stack One Top       : 20042000
I suspect 'Stack One Bottom' and 'Stack One Top' are correct, but having the same value would cause me to ask if it were, if you asked if anyone could see anything odd or possibly wrong with what you had.

Statistics: Posted by hippy — Sat Dec 21, 2024 7:53 pm



Viewing all articles
Browse latest Browse all 4959

Trending Articles