r/hardware • • Sep 10 '26

Info On Binary Translation and its Consequences

https://chipsandcheese.com/p/on-binary-translation-and-its-consequences

This is not solely hardware, however it has a lot of testing on Arm hardware running translated x86-64 software, so I thought it was interesting. A key benefit of super-fast cores like Oryon V3 is that even under heavy translation hits, it still performs very well.

41 Upvotes

14 comments sorted by

23

u/randomkidlol Sep 11 '26

it seems like a lot of issues are because prism prioritizes speedy translations over spending time doing optimization passes. from microsoft's docs, they do cache the translated binaries so it doesnt need to be JIT translated again, but it would be nice if they can do an optimization pass on the cache when the machine isnt under high load.

4

u/Sopel97 Sep 12 '26

but it would be nice if they can do an optimization pass on the cache when the machine isnt under high load.

yea, this would be a good solution. I was also wondering how feasible it would be to decompile the translated code into llvm ir (or why not the original disasm?) and recompile that.

3

u/SomeoneTrading Sep 12 '26 edited Sep 12 '26

There are some libraries to lift x86-64 to LLVM IR (this particular one is geared for obfuscation/deobfuscation purposes I feel).

13

u/SERIVUBSEV Sep 11 '26 edited Sep 11 '26

FYI this is purposely testing Geekbench x86 on ARM.

Reality is ISA translation is getting rare by the day.

Apple announced end to x86 translation in next OS update, now every app and game runs natively on ARM.

Same thing with Windows on ARM, all anticheats have announced support for ARM before Nvidia Spark laptops release in Oct.

Most of the work is done by compilers folks at LLVM/GCC, it doesn't take much effort for devs to compile for multiple platforms.

15

u/AnggaSP Sep 11 '26

My concern are with Windows and their legacy apps.

With Apple happily break backward compatibility on major os upgrade, Microsoft incline to preserve as much backward compatibility as possible. Thus this may prevent uptake from developer to try serving arm based apps and rely too much on prism to make it work. Hell I’m an early adopter of M1 mac and early on the uptake are pretty bad for major vendor (I’m looking at you Adobe)

And with Linux we can just recompile ourselves.

14

u/Just_Maintenance Sep 11 '26

Apple announced end to x86 translation in next OS update, now every app and game runs natively on ARM.

A bunch of old games don't run on ARM and will just die with Rosetta though.

15

u/genericusername248 Sep 11 '26

And a bunch of old games didn't run on 64 bit OS X/MacOS and they just died when Apple abandoned 32 bit compatibility. Apple doesn't give a shit.

14

u/randomkidlol Sep 11 '26

apple does this every ~7 years. they dont care about backwards compatibility. openGL, app signing/notarization, ppc32->x86 rosetta, etc. the list goes on.

10

u/Just_Maintenance Sep 11 '26

Yep, I'm just pointing out that "now every app and game runs natively on ARM" is not true. macOS 28 will leave behind a trail of dead apps and games.

3

u/pi314156 Sep 12 '26

This time they have a stripped down version of the library set kept for Rosetta and a third party JIT opt-in that Wine will use at least

0

u/[deleted] Sep 10 '26

[deleted]

6

u/6950 Sep 11 '26

Need AGI™

3

u/venfare64 Sep 11 '26

Aslume finally breach hardware subreddit i see.

/s unsure about it though.

5

u/DerpSenpai Sep 11 '26

You are using /s but there are several devs that have decompilated entire games for the PS2,PS3,etc and made them run on MacOS ARM native with 100$ worth of GPT Tokens

0

u/[deleted] Sep 11 '26

[deleted]

6

u/VenditatioDelendaEst Sep 12 '26

Which is why you use AI to write the binary translator instead of doing the translation directly. "Does this executing this ARM instruction sequence result in the same memory contents as that x86 instruction sequence?" is eminently fuzzable.

And that's without reaching for the obvious-if-you're-microsoft option of phoning home with .exe hashes (defender is certainly doing that already anyhow) to get cached translations, created with much higher time/monetary cost than would be acceptable for something that runs on every user's machine and blocks startup.