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

SDK • Re: Proper way to get Heap size

$
0
0
Heap Size: 4294957056
It looks like an integer overflow, probably negative subtraction result seen as unsigned.

Could you explain this formula ?
printf("Heap size %u bytes\r\n", ((&__StackLimit - (10 * 1024)) - &__HeapLimit));

Statistics: Posted by gmx — Fri Dec 20, 2024 11:06 am



Viewing all articles
Browse latest Browse all 5919

Trending Articles