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.

6678 调试时malloc 问题



现有一个算法,要求动态申请一个比较大的空间,我将堆内存大小 -heap 设置成0x1000000,然后用malloc动态申请 155136*8的一块空间,代码运行时,程序未能正常分配到空间;当动态申请155135*6的一块空间时,能正常申请。

不知道哪位有遇到过这样的问题。是不是在CCS中一次malloc申请空间的大小不能超过 1MB ?