Code alignment questions
Hello,
I am working with STM32G0 with uCOS-II.
I was reading some of the actions are fragile to unalignment;
I was wondering how to align the code. As per now, the only command I know is :
#pragma data_alignment =8 which I use just before launching the OS.
I was wondering if every variables or other ressource. should be aligned or if my previous line
#pragma data_alignment = 8 would be enough. to align all the code.
Also, how can I verify that every ressource is aligned? ( I mean does every thing perceivable on dissasembly would be located at a pair addresse? )
Additionally how can I check if a functions check for alignment ? ( I've heard about memcmp for example which is susceptible of checking alingment )
On the image below a R4 value is an unpair addresse for example
Thank you!

