79224797

Date: 2024-11-25 22:59:36
Score: 2
Natty:
Report link

Answered by Peter Cordes

They're probably counting instruction-fetch: 3 instructions plus a load and a store. Registers aren't memory. Some microarchitectures fetch blocks of machine code in wider chunks (and even decode multiple instructions per cycle in parallel), but those uarches would have an I-cache (or a unified L1 cache on older ARMs). So there'd be 2 data cache accesses (load + store) and one or two I-cache accesses on a high-performance CPU.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nicho Roi