Re:Misconceptions about loops in C
by murderfs on Thursday June 27, 2024 @04:05PM
(#40814495)
Depends on the assembly and depends on the loop. x86 has multiple instructions that hint at knowing about loops: e.g. the `loop` instruction that does a decrement and jump, and the rep prefixes that let you implement memcpyish functions in a single instruction.
[ Parent
| on HN ]
Fair point. The higher level languages have been leaking back down into assembly.