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.

程序过大,内部RAM不够用怎么办?



我用CCS3.3编写的程序,编译没有问题,连接的时候报错:

error: can't allocate .gblinit, size 00000029 (page 0) in L03SARAM (avail:00000020)

上网查了,大概原因是程序过大而RAM空间不足。.gblinit是DSP/BIOS Init Tables。

现在的问题是程序为什么会占用BIOS的空间?如果程序过大如何缩减程序的容量?从哪里下手?比如哪些变量类型或者函数会占用空间比较大。

注:硬件已经设计好,所以不可能增加外部RAM。最好在不修改CMD文件的前提下解决问题。