Hacker News new | past | comments | ask | show | jobs | submit login

Couldn't they just microcode it to that?



That's not how microcode works, but yes - the instruction decoders and retirement logic are capable enough these days that you can have it decode into the same sequence of μops, which is almost certainly what happens.

Note that it's not exactly the same thing, because an interrupt can happen between the decrement and jump for the two-instruction case, but not for the LOOP case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: