News for hackers. Stuff that matters.
Re:HelloSilicon – An introduction to assembly on Apple Silic... by stephencanon on Sunday December 25, 2022 @03:04PM (#34130708)
Technically it has to point to _a_ valid frame, but it doesn’t have to be the active function’s frame. So it’s safe to omit setting up a normal call frame, you just aren’t supposed to use it as a GPR.
Re:HelloSilicon – An introduction to assembly on Apple Silic... by stephencanon on Sunday December 25, 2022 @03:05PM (#34130717)
I.e. don’t do what a former coworker did (on x86) and use both the stack pointer and frame pointer registers as index registers for your FFT implementation.
Re:HelloSilicon – An introduction to assembly on Apple Silic... by saagarjha on Sunday December 25, 2022 @04:57PM (#34131836)
lmao
Re:HelloSilicon – An introduction to assembly on Apple Silic... by stephencanon on Sunday December 25, 2022 @05:21PM (#34132092)
When you only have a few GPR names, this sort of thing starts to look tempting. IIRC it was about a 10% perf win, but we didn’t ship it.