News for hackers. Stuff that matters.
Re:ARM Assembly: ∞ Ways to Return (2017) by garbagecoder on Friday February 10, 2023 @12:17PM (#34742591)
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-arm6...

Re:ARM Assembly: ∞ Ways to Return (2017) by wk_end on Friday February 10, 2023 @12:45PM (#34743044)
The 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.

Re:ARM Assembly: ∞ Ways to Return (2017) by flykespice on Friday February 10, 2023 @05:18PM (#34746756)
The only one getting mad here is you for no reason.
Re:ARM Assembly: ∞ Ways to Return (2017) by ngcc_hk on Saturday February 11, 2023 @04:40AM (#34750890)
Quite interesting. Wonder any analysis about at least some of these choices.