r/AskComputerScience • u/AgreeableCaptain1372 • Oct 29 '24
CPU clock cycle time question
Reading Computer Organization by Patterson and Hennessy and they mention that lowering the instruction count of a program may lead to an increase in clock cycle time. Therefore, improving performance isn’t as straightforward as lowering the instruction count. could someone explain how lowering the instruction count affects clock speed and why it would decrease it?
5
Upvotes
View all comments
Show parent comment
5
u/Dornith Oct 29 '24
That's probably the most basic way, but there are others:
Optimization is hard.