4 ms·
Apple uses the standard calling conventions for the CPU architectures they use, so there's no real need nor expectation for Apple to document those aspects beyo
by mikeash 12y ago
Apple uses the standard calling conventions for the CPU architectures they use, so there's no real need nor expectation for Apple to document those aspects beyond saying "we use the standard conventions," which they do say if you go digging. In some instances they also replicate the documentation for the conventions.
- jparishy 12y agoWell, for new developers they might not put together "we use this calling convention" with "and that means you can find things like self, _cmd, or the exception that was thrown in these registers ... which can ease debugging your app". That's useful information I wish they'd put up in their docs, is all.
- stephencanon 12y agoIt's not obvious that you can meaningfully talk about to "the standard conventions" on i386, x86_64, or armv7, as there are at least two widely-used conventions for each. arm64 comes the closest to having a single "standard", but Apple uses a (documented) tweaked version.
- masklinn 12y ago> It's not obvious that you can meaningfully talk about to "the standard conventions" on i386, x86_64, or armv7, as there are at least two widely-used conventions for each. x86_64 has the System V AMD64 ABI calling conventions which are as standard as can be and used by almost everybody. Microsoft being their usual assholes does not mean their ABI is anything other than their ABI.
- nezza-_- 12y agoMicrosoft being their usual assholes does not mean their ABI is anything other than their ABI Not helpful.
- hornetblack 12y agoPlan 9, and therefore The Go Programming language use a different one, which is the same across all architectures supported by Plan9's assembler. (It's one reason why cgo call's are not cheap)