logoalt Hacker News

bayindirhyesterday at 8:01 PM2 repliesview on HN

Apple silicon has features specifically designed for macOS or software running on macOS. e.g.: Rosetta 2.

From Wikipedia:

One of the key reasons why Rosetta 2 provides such a high level of translation efficiency is the support of x86-64 memory ordering in the M1 SoC.[12] The SoC also has dedicated instructions for computing x86 flags.

So, Apple always adds one more thing to their hardware to enable their magic.

[0]: https://en.wikipedia.org/wiki/Rosetta_(software)#Rosetta_2


Replies

throawayontheyesterday at 9:35 PM

ya but that one is usable on linux, here is a real world project taking advantage of it: https://github.com/FEX-Emu/FEX/pull/2665

you can find more apple-specific stuff by digging around in these docs: https://asahilinux.org/docs/platform/subsystems/

tensegristyesterday at 8:25 PM

i wonder if this is not something that asahi could eventually make use of

edit: https://lwn.net/Articles/970907/