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内存问题



大家好,

请问一下EVM6678L单核运行可以处理多大的数组?我测了一下,定义维数为20000的float型数组就不行了,但是20000个float型数据也就是80000个字节,不到10K Byte,而一个核上的内存容量是32K Byte L1D,512K Byte L2,应该是可以处理有20000个float型数据的数组的啊。我的测试代码和linker file如下,请问是什么原因?谢谢!

code:

#include<stdio.h>
#include<stdlib.h>
void main()
{
 float a[20000];
 int i;
 for(i=0;i<10000;i++)
 {
  a[i]=i;
 }
}

Linker file:

-stack 0x10000
-heap  0x8000

MEMORY
{
  L2SRAM      : o = 0x00800000, l = 0x00080000
  MSMCSRAM       : o = 0x0c000000, l = 0x00400000
}

SECTIONS
{
  .cinit  : > L2SRAM
  .cio   : > L2SRAM
  .const  : > L2SRAM
  .data         : > L2SRAM
  .far   : > L2SRAM
  .fardata  : > L2SRAM
  .stack  : > L2SRAM
  .sysmem  : > L2SRAM
  .text         : > L2SRAM
  .neardata  : > L2SRAM
  .bss   : > L2SRAM
 
  .fasttext:  >       L2SRAM
  .switch:    >       L2SRAM
  .heap       >       L2SRAM
  .rodata     > L2SRAM
  .boot: > L2SRAM
}