STM32 Barrier Instructions.
If you have never looked into how a microcontroller works, you probably think it executes instructions sequentially, one after another. That is exactly how the first MCUs worked, but over time their architecture became more complex to increase performance. It is important to note that executing an instruction itself consists of stages. In general terms, from the MCU's point of view it looks like this: fetch the instruction from memory, execute it...