Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写了一个延迟函数:
void delay(a){ for (int i=a;i>0;i--) for (int j=0; j<200;j++) }
但是当我通过 sdcc 和 keil 编译这段代码,并在 8051 芯片上运行时。结果就是sdcc编译的delay函数运行起来比keil编译的函数慢很多。
谁能告诉我为什么...
不同的编译器在机器语言中使用不同的实现。有几个问题,不仅限于,但我脑海中突然出现的问题:
int