News for hackers. Stuff that matters.
Re:Writing ARM64 Code for Apple Platforms by somebody_amzn on Thursday June 24, 2021 @11:01AM (#27618607)
You don't need a translator. The ABI is a software construct, not an hardware one.

What would be needed though is to have two copies of the system libraries in such a case, targeting different ABIs. That's of course very unlikely to happen.

Re:Writing ARM64 Code for Apple Platforms by saagarjha on Thursday June 24, 2021 @03:18PM (#27622579)
There are already two different ABIs for Apple silicon, although one (arm64e) is mostly reserved for Apple’s use at the moment. Apple could choose to finalize the ABI for that with x18 being available to applications, although this is quite unlikely.
Re:Writing ARM64 Code for Apple Platforms by olliej on Thursday June 24, 2021 @06:49PM (#27624941)
No there aren’t and you know that.

Arm64e has the exact same abi as arm64, but in arm64 mode the pac instructions are no ops.

Otherwise as the parent says apple would need multiple copies of the system libraries.

Re:Writing ARM64 Code for Apple Platforms by saagarjha on Thursday June 24, 2021 @07:45PM (#27625385)
Yeah, I understand that they are currently the same, I'm just saying that as Apple hasn't locked down the ABI yet so they could in the future choose to ship a new copy of all the libraries (as they do with x86_64h) for arm64e (well, split out arm64 slices) and for that ABI allow the use of x18. It would be pretty dumb, but it's possible.