Is there an option to disable heap functions in KDS?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Is there an option to disable heap functions in KDS?

1,361 次查看
raels-r
Contributor IV

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).map.zip

Original Attachment has been moved to: frdm_kl26_attach_demo(CW).map.zip

标签 (1)
标记 (5)
0 项奖励
回复
1 回复

1,027 次查看
BlackNight
NXP Employee
NXP Employee