This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ZI-data size increases with Stack Size increase

If i set the stack size to 10k(0x2800) in the configuration wizard and re-build the code, ZI-data size is 18868. But when i increase the stack size to 20k(0x5000),ZI-data becomes 29108. Why is this so?

Also, since my code never uses dynamic memory allocation, can i set the heap size to 0 bytes?

Parents
  • Why is this so?

    Because the stack is part of ZI (Zero Initialised). You increase stack, you increase ZI.

    Also, since my code never uses dynamic memory allocation, can i set the heap size to 0 bytes?

    Yes. So long as your code does not use the heap indirectly (like, via library functions).

Reply
  • Why is this so?

    Because the stack is part of ZI (Zero Initialised). You increase stack, you increase ZI.

    Also, since my code never uses dynamic memory allocation, can i set the heap size to 0 bytes?

    Yes. So long as your code does not use the heap indirectly (like, via library functions).

Children