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

Keil and Cortex-M AREA ALIGN=x directive

Hi.

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?

Parents
  • 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

Reply
  • 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

Children