我用的TI6678开发板,我在做项目中遇到的一个问题就是不知道如何分配堆栈的大小?我根据什么依据来的?我想请问各位工程师。
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.
我用的TI6678开发板,我在做项目中遇到的一个问题就是不知道如何分配堆栈的大小?我根据什么依据来的?我想请问各位工程师。
看你的子函数中用的最多的变量空间,例如:
void demo()
{
int a[65536] = {0};
int i = 0;
for(i=0;i<655636;i++)
printf("%d",a[i]);
}
这个子函数需要65536x4字节空间,你把堆栈设的比这打一点就好了,在cmd文件最前面设-stack 0x48000