AnsweredAssumed Answered

Is there an option to disable heap functions in KDS?

Question asked by Rael Sasiak-Rushby on Jul 30, 2014
Latest reply on Jul 30, 2014 by Erich Styger

A project I'm working on has very limited code sizes and can't afford to have heap space.

In the linker file i've defined heap space as 0x0, but the linker still includes the functions "malloc" and friends in the code, causing it to be oversized.


I know the code functions fine without malloc as the project was initally built in CW and a nm scan of the .elf file confirms no "malloc" or other heap functions.


I've attached the relevant .map files to show user_heap_stack is indeed zero, and that KDS includes malloc, while CW does not.


I assume there might be some sort of switch I can use to disable the automatic inclusion of malloc?

Original Attachment has been moved to: sticky_(KDS)

Original Attachment has been moved to: frdm_kl26_attach_demo(CW)