程序如下,在CCS5.2下编译
unsigned char buf[512*1024];
main
{
int i;
for(i=0;i<512*1024;i++)
{
buf[i]=i;
}
}
build后在map文件中发现.far段的数据长度只有0。但如果把数组长度改为512*1024-1,则.far段的长度的却是512*1024-1。
感觉编译器对数组长度的支持最大只能到512*1024-1,否则长度就卷转了。请问一下这是怎么回事?
能否有办法支持更大的数组?
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.
程序如下,在CCS5.2下编译
unsigned char buf[512*1024];
main
{
int i;
for(i=0;i<512*1024;i++)
{
buf[i]=i;
}
}
build后在map文件中发现.far段的数据长度只有0。但如果把数组长度改为512*1024-1,则.far段的长度的却是512*1024-1。
感觉编译器对数组长度的支持最大只能到512*1024-1,否则长度就卷转了。请问一下这是怎么回事?
能否有办法支持更大的数组?