Store placement

The following guidelines will help ordering memory instructions to minimize the cycles used.

  • The optimal place for a store is after a load and before a non-memory instruction.
  • The second best place for a store is between non-memory instructions.
  • The worst place for a store is before a load instruction.
  • The store multiple instruction stm is space efficient but not necessarily faster, individual stores can perform faster if not followed by a load.