Lukas' Notes

computer-architecture

Definition

Store Instruction

A store instruction is an instruction that writes a value from a register to memory.

In the classic five-stage pipeline, the store computes an address in the execute stage and writes data during the memory access stage.

Compared to loads

Unlike a load instruction, a store does not produce a register value. It therefore creates no read-after-write hazard for later instructions that read the target register.

A store may still create a data hazard if a later load reads the same memory address before the store completes. This is a memory ordering hazard, handled by the load-store unit.