freeing memory after osMalloc

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

freeing memory after osMalloc

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

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