News for hackers. Stuff that matters.
Re:Understand CPU Branch Instructions Better by flohofwoe on Thursday July 10, 2025 @02:39AM (#44518000)
These are mostly internal implementation details, instructions still appear to resolve in order from the outside (with some subtle exceptions for memory read/writes depending on the CPU architecture). It may become important to know such details for performance profiling though.

What has drastically changed is that you cannot do trivial 'cycle counting' anymore.

Re:Understand CPU Branch Instructions Better by tucnak on Thursday July 10, 2025 @03:46AM (#44518414)
Not to step on your toes, but it shall be said that instructions in a CPU "retire" in order.
Re:Understand CPU Branch Instructions Better by peterfirefly on Thursday July 10, 2025 @06:27AM (#44519381)
They don't even always do that anymore.
Re:Understand CPU Branch Instructions Better by IshKebab on Thursday July 10, 2025 @12:22PM (#44522690)
Depends what you mean by "retire" but by the normal definition they always retire in order, even in OoO CPUs. You might be thinking of writeback.