I'm a little bit confued.
How does "AREA ALIGN=2" directive work?
I mean ALIGN=x of course.
I am trying to undersand how it works and what it is for?
Can you explain me in a very simply way? please
W read a lot about 2 exp x boundry but what does it mean in phisical way?
It forces the linker to align the region on 32 bit boundaries.
It is preferable that DCD data items, literal pools and looping branch targets are on the 32-bit / 4-byte boundaries. Similarly a LDRD from memory would need this type of alignment.
You could pick courser alignment like 8 or 16 byte
When i look at the code for STM32 - M3 i can see that sometimes this ALIGN=2 directive appears and sometimes it does not. And I can not understand why that is so.
View all questions in Keil forum