Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


For 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-arm6...


This is not true, Apple sticks pretty closely to AAPCS except for a handful of cases.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: