最近在做一个小的测试项目,需要动态分配内存的操作,从而涉及到了堆栈大小的设置的问题,程序调用如下:
unsigned char *buf;
buf=(unsigned char*)malloc(512*sizeof(unsigned char)); //生成一个堆栈内存
free(buf);
编译结果为:
#10247-D creating output section ".sysmem" without a SECTIONS specification GPS5110 C/C++ Problem
#10210-D creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size GPS5110 C/C++ Problem
如何进行修改?谢谢
ming liu6:
回复 10#:
很感谢您的回答,问题已经解决。