This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于在堆区的动态分配内存问题



俺目前做的项目是关于无线通信基带部分算法的。

俺定义了基带信号的结构体

typedef struct
{
 Cmplx_t *ptSignalArray;
 INT16  arrayLen;
 INT8  quant;
}CmplxSgn_t;

在定义信号之后会动态分配一段arrayLen长的内存给ptSignalArray,在信号的使命结束后会把内存释放掉。

但是俺刚接触dsp不久,有资料说频繁的申请/释放内存会造成内存碎片。不知道对程序有没有影响呢?