4 ms·
fwiw, if you're using ARM assembly on an Apple device there are a few differences and one of them is how you pass arguments. https://developer.apple.com/docume
by garbagecoder 4y ago
fwiw, if you're using ARM assembly on an Apple device there are a few differences and one of them is how you pass arguments.
https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms https://developer.apple.com/documentation/xcode/writing-arm6...
- wk_end 4y agoThe article is describing classic ARM. (Modern) Apple devices are all ARM64, which doesn't have the PC as a GPR. The article is also entirely about how the PC is a general-purpose register on 32-bit ARM machines. No idea if the 1st gen iPhones or whatever used an idiosyncratic calling convention...but it's moot in the context of this post, because argument passing isn't covered here! This post really is just about the observation that the PC is a GPR implies that there's a bunch of different ways to get data into it. It's pretty airy. The author was admittedly a first or second year university student at the time, so it's hard to be too mad though.
- flykespice 4y agoThe only one getting mad here is you for no reason.
- ngcc_hk 4y agoQuite interesting. Wonder any analysis about at least some of these choices.