ARM: Efficient C for ARM: Base Pointer Optimisation

by David Thomas on

Base Pointer Optimisation

Grouping global or static variables together into a struct allows the compiler to refer to them through a single base pointer.

Instead of having multiple variables kept at multiple locations within the binary, this turns them into a single “large” variable accessed through one known offset.