Hi,
I am doing a speed test of integer multiply on a C6467t EVM Board.
This test intC[1000] = intA[1000]*intB[1000] run 1000 times.
All the arrays A,B,C are stored in L2SRAM.
The build option o3, none debug mode.
The result of Simulation shows 1 cycle cost in one multiply calculation.
But the result of Emulation shows 10 cycles cost.
The code is like this
#include<stdio.h>
#define SIZE 1000
#pragma DATA_SECTION( "sramABC")
int arrayA[SIZE], arrayB[SIZE], arrayC[SIZE];
void main(){
int i;
for(i=0; i<SIZE; i++)
arrayC[i]=arrayA[i]*arrayB[i];
}
Is there any clue why the difference occurs?
Thanks.