3 ms·
Would have posted exactly this if you hadn't already. So many pitfalls with M1 in the way Apple subtly veers from normal ARM64 conventions and the published spe
by nonameiguess 5y ago
Would have posted exactly this if you hadn't already. So many pitfalls with M1 in the way Apple subtly veers from normal ARM64 conventions and the published spec. This guy has already figured them out for you. Also helpful to look at the XNU source code to see how they implement syscalls.
- comex 5y agoFor the record, Apple does publish its own documentation describing how Apple’s ABI diverges from the ARM standard one: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms https://developer.apple.com/documentation/xcode/writing-arm6...
- saagarjha 5y agoThis is not true, Apple sticks pretty closely to AAPCS except for a handful of cases.