Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Global variable alignment
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
3504 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
Global variable alignment
Miguel Sebastián
over 12 years ago
Note: This was originally posted on 13th January 2011 at
http://forums.arm.com
Hi,
I am working with RealView Compilation Tools v2.1. I need to align a static global variable on a 16-byte boundary. In the 'Compiler and Libraries Guide' document, section 3.1.3, the __align(n) keyword is explained. It is not clear to me if n=16 is allowed for a static global variable. I have tried it and it appears to be working, but I would like to confirm it.
Best Regards,
Miguel
Parents
Miguel Sebastián
over 12 years ago
Note: This was originally posted on 19th January 2011 at
http://forums.arm.com
Hi,
The point is that RVCT 2.1 says: '[font="Times-Roman"][size="2"]You can specify a power of two for the alignment boundary, however eight is the maximum for auto variables'. As I understand, an 'auto' variable is the same as a 'local' variable, so it is not clear to me what is the limitation for global variables.
Regards,
Miguel[/size][/font]
Cancel
Vote up
0
Vote down
Cancel
Reply
Miguel Sebastián
over 12 years ago
Note: This was originally posted on 19th January 2011 at
http://forums.arm.com
Hi,
The point is that RVCT 2.1 says: '[font="Times-Roman"][size="2"]You can specify a power of two for the alignment boundary, however eight is the maximum for auto variables'. As I understand, an 'auto' variable is the same as a 'local' variable, so it is not clear to me what is the limitation for global variables.
Regards,
Miguel[/size][/font]
Cancel
Vote up
0
Vote down
Cancel
Children
No data