freeing memory after osMalloc

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

freeing memory after osMalloc

1,352 次查看
steve88
Contributor I

Hi.  I'm running on 8156ADS with beta verision of code warrior 10.0 and Smart DSPOS.  I'm wondering what is a "memory free" method for a buffer allocated with osMalloc().

thank you.

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

636 次查看
CrasyCat
Specialist III

Hello

 

From SDOS Concept manual "Memory manager supports allocation of memory from different memory sections using
the osMalloc() function. Note that SmartDSP OS doesn't support an equivalent
osFree() function and therefore allocated memory is never really released".

 

You may want to look at the Buffer Management feature and the osMemPart and osmemBlock functions.

This allows you to allocate a buffer and then get and free part of this buffer.

 

CrasyCat

0 项奖励
回复