Is there an option to disable heap functions in KDS?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is there an option to disable heap functions in KDS?

998件の閲覧回数
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 返信

664件の閲覧回数
BlackNight
NXP Employee
NXP Employee