I hadn't noticed this before, but you can directly reference a global variable in a load/store in assembly, which combines a lla + ld/sd into a 2 instruction pair instead of 3 due to the 12 bit offset provided in the load/store.
I hadn't noticed this before, but you can directly reference a global variable in a load/store in assembly, which combines a lla + ld/sd into a 2 instruction pair instead of 3 due to the 12 bit offset provided in the load/store.