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.

如何加快A[i] = AdcRegs.ADCRESULT0;这句程序的运行速度

现在在用DSP2812做一个采样程序

其中有一句程序是A[i] = AdcRegs.ADCRESULT0;

其中A是我定义的一个数组,AdcRegs.ADCRESULT0是存放采样结果的寄存器

我用CCS5.5中的clock功能观察到运行这句语句需要耗费6到7个时钟周期

初步猜想是寄存器寻址需要耗费一些时间

我想知道如何才能提高这句程序的运行速度