If I include stdlib.h in my code, malloc is included as well as the heap of SRAM. Is there an easy way to see how large the heap is? Is it based on the uC/SRAM size or is it fixed?
I know roughly how much memory I need malloc to create so, leaving a healthy safety margin for dead space from realloc and what not, I should be able to adjust the size to fit. According to the avrlib docs, you can move the heap start and end points, either at link time or run time but I did not see anything that would tell me WHERE those pointers start.
Also, if it helps, I am using an AT90USB1287 but I would like to know the general heap size if there is a doc or list somewhere.
Thanks in advance,