r/linux • • Feb 03 '23

Tips and Tricks Weird things I learned while writing an x86 emulator

https://www.timdbg.com/posts/useless-x86-trivia/
122 Upvotes

10 comments sorted by

14

u/k0defix Feb 03 '23

And once more I wonder how x86 is still ahead in performance...

16

u/StenSoft Feb 04 '23

The CPU doesn't actually run x86 code, there's a decoder to an internal RISC set called micro-operations, and it uses some very clever tricks to speed the execution.

→ More replies (1)

-1

u/Zomunieo Feb 04 '23

x86 is really only used for legacy reasons, since ARM outperforms it on price/performance and performance/watt.

It just happens that the x86 legacy is huge. So huge, that x86 wins on consumer cost/die area — consumers will pay more for x86, even though it’s not as performant as the ARM that could be made with the same silicon.

If Intel still had an ARM license and wasn’t run by clueless accountants for the last 15 years we’d probably have ARM desktops and laptops with x86 compatibility modules like M1.

1

u/TrevinLC1997 Feb 04 '23

God I feel that would be a dream, I’ve always wanted an ARM desktop cpu

1

u/ShinyHappyREM Jul 11 '24

I've always wanted an ARM desktop cpu

How about a laptop?

→ More replies (2)

12

u/autoamorphism Feb 03 '23

Super interesting. Thanks!

7

u/CaydendW Feb 03 '23

Fascinating! Now run windows on it >:)

3

u/thepaperbirch Feb 03 '23

This was a rabbit hole. Thanks for sharing 🙏🏻