且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

指令的数量相当于

更新时间:2023-11-16 10:17:16

您不太了解的问题。执行速度不仅取决于指令,但在指令间的依赖关系也。微处理器可以在给定的这个指令不互相依赖,同时执行多个指令。同时执行多个指令的能力从一个处理器家族的不同而不同。这就是为什么这个任务是真的硬件特有的,它不能被一次解决,所有

You don't quite understand the problem. Execution speed depends not only on instructions but on inter-instruction dependencies also. Microprocessors can execute several instructions at the same time given this instructions don't depend on each other. The ability to execute several instructions at a time differs from one processor family to another. That's why this task is really hardware-specific, it can't be solved once and for all.

所有你能做的就是指令和处理器周期图的执行时间表。处理器周期可能是y轴,指示可以是x轴。你有问题predicting缓存成功和失败与许多指令执行时间将根据缓存命中/未命中相差很大。准备花很多时间与处理器手册。

All you can do is graph an execution timeline of instructions and processor cycles. Processor cycles could be y-axis, instructions could be x-axis. You'll have problems predicting cache hits and misses and execution time of many instructions will vary greatly depending on cache hits/misses. Be ready to spend a lot of time with processors manuals.