ST意法半导体
直播中

梁若莲

8年用户 187经验值
私信 关注
[问答]

请问while循环需要多少个时钟

你好。
我想知道例如while循环需要多少个时钟。
你对这件事有什么想法或文章吗?

以上来自于谷歌翻译


以下为原文




Hi.
I wanted to know that for example how many clocks a while loop takes.
Do you have any ideas or any articles on this matter?

回帖(21)

冬妮

2018-11-28 10:14:12
1.用范围计时,或
2.看看拆卸。

以上来自于谷歌翻译


以下为原文




1. Time it with a scope, or
2. Look at the disassembly.
举报

梁若莲

2018-11-28 10:33:22
如何使用反汇编来获取时钟数?
每个拆卸线只有一个时钟?

以上来自于谷歌翻译


以下为原文




How can I use disassembly to get the clock numbers?
Each disassembly line is just one clock?
举报

符伯峪

2018-11-28 10:47:04
您需要查看处理器文档,了解每个不同指令所需的周期数,并将其乘以循环迭代。
如果您想知道不同处理器需要多少个周期,您需要研究设计和功能。

以上来自于谷歌翻译


以下为原文




You'd need to review the processor documentation as to how many cycles each different instruction takes, and multiply that by the loop iterations.
If you want to know how many cycles different processors take you'll need to study the design and functionality.
举报

陈娟

2018-11-28 10:58:29
您想要解决的根本问题是什么?
我想你不想数周期来计算周期...

以上来自于谷歌翻译


以下为原文




What is the underlying problem you want to solve?
I guess you do not want to count the cycle to count the cycles...
举报

更多回帖

发帖
×
20
完善资料,
赚取积分