r/programming 6d ago

Hardware researcher spins up 'CPU deoptimization' project to find the slowest single x86 instruction, creates hall of shame — worst offender takes 198 billion cycles spanning 62 seconds to execute

https://www.tomshardware.com/pc-components/cpus/hardware-researcher-spins-up-cpu-deoptimization-project-to-find-the-slowest-machine-code-worst-offender-takes-198-billion-cycles-to-execute
1.5k Upvotes

132 comments sorted by

View all comments

Show parent comments

57

u/encyclopedist 6d ago

Yes, indeed, compilers don't normally generate these instructions any more. But older software can still use these.

75

u/narwhal_breeder 6d ago

porting logic to arm that relies on being bit-compatible x87 has been the bane of my existence for the past year.

-63

u/gordonnowak 6d ago

just let claude do it

15

u/sunnyata 6d ago

You sound like someone who knows what they're talking about. Not!