31.01.2020, 12:41
Quote:
How do you estimate the size? Based on what exactly are the estimations, to set pragma dynamic value?
|
Quote:
estimated max. usage=4100 cells (16400 bytes) |
If you mean what #pragma dynamic you should use, the value is in cells. 1 cell is 4 bytes, which is why #pragma dynamic 16000" sets the heap to 64,000 bytes.
Usually I recommend just setting it to 16000 no matter what. It won't break anything, the extra amount of memory usage is meaningless, and it'll make sure you never inadvertly run into any heap overflow issues (unless you do something such as recursion)