3 ms·
Isn't LOOP one of those microcoded instructions that actually runs slower on modern processors than a RISC-style separate decrement and compare?
by prodigal_erik 16y ago
Isn't LOOP one of those microcoded instructions that actually runs slower on modern processors than a RISC-style separate decrement and compare?
- derefr 16y agoIt's a slow instruction, but it's a single instruction—in a loop with an empty body, this creates the best possible situation for memory locality: you just keep reading the same memory address/cache line over and over.