this post was submitted on 01 Dec 2025
3 points (100.0% liked)

Hacker News

3269 readers
332 users here now

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

founded 1 year ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] henfredemars@infosec.pub 1 points 2 weeks ago

Fun fact:

nop is also just xchg eax, eax!

[โ€“] gheesh@lemmy.world 1 points 2 weeks ago

The instruction is smaller than "mov eax, 0" (because it includes the 32-bit zero) and the result is the same. Notice that smaller may mean more instructions in cache for a tight loop, so it may also result in better performace, too.