void delay(unsigned int time){unsigned int j=0;for(;time>0;time--)for(j=0;j
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/02 06:30:31
![void delay(unsigned int time){unsigned int j=0;for(;time>0;time--)for(j=0;j](/uploads/image/z/13689789-69-9.jpg?t=void+delay%28unsigned+int+time%29%7Bunsigned+int+j%3D0%3Bfor%28%3Btime%3E0%3Btime--%29for%28j%3D0%3Bj)
xN@_#E=Q.H)B M j A"lxێ'e, ${r^ږE'_AKRz# \ɵf.7Kz/,¨7'bA
f`b(xBLQg.U\Ў
#
void delay(unsigned int time){unsigned int j=0;for(;time>0;time--)for(j=0;j
void delay(unsigned int time)
{unsigned int j=0;
for(;time>0;time--)
for(j=0;j
void delay(unsigned int time){unsigned int j=0;for(;time>0;time--)for(j=0;j
大概是125*time*4个指令周期
在for语句里面每执行一次至少有一次比较(1周期),一次inc或dec(1周期),还有一次跳转之类的指令(1或2或3周期),各个编译器编译后也不全相同,你可看编译后的代码来估算好了.