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.

C6657 Emulation和Simulation问题



#include <stdio.h>
#include <math.h>
#include <c6x.h>
#include <time.h>

int i;
int a[1000]={0};
clock_t t_overhead, t_start, t_stop;

void main()
{
    TSCH=0;
    TSCL=0;
    t_start = _itoll(TSCH, TSCL);
    for(i=0;i<1000;i++)
    {
        a[i]=i;
    }
    t_stop = _itoll(TSCH, TSCL);
    t_overhead = t_stop - t_start;
}

上述程序在C6657开发板上的运行Cycle:16037

Simulation的Cycle:16016

各位TI工程师们,请问下这是什么原因