I am seeing at least 2 bytes of data memory being allocated for every function called. If the function calls other functions it could mean a whole lot of bytes being allocated.
I don't remember this behavior in HiTech. Perhaps I never looked before so just did not notice it. Now I am short on memory so looking for every byte. What is the purpose of the 2 bytes? I thought stack was on program memory? Is it used for a pointer?
The sprint function takes a whooping 28 bytes of data memory! I always knew that sprintf was program memory hungry put 28 bytes of data memory!
I don't remember this behavior in HiTech. Perhaps I never looked before so just did not notice it. Now I am short on memory so looking for every byte. What is the purpose of the 2 bytes? I thought stack was on program memory? Is it used for a pointer?
The sprint function takes a whooping 28 bytes of data memory! I always knew that sprintf was program memory hungry put 28 bytes of data memory!
Last edited: