This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reordering instructions

Greetings!

Keil uVision 5, ARM Compiler 6.12, -Os balanced, Cortex-M3. Just as an example

As you can see, there was a reordering of instructions. It is quite legal, I understand that perfectly.
But how do you make the compiler not do this here? I want nothing superfluous to be wedged into the GPIOC->OR change

What optimizer barrier should I use and how?

0