Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Global variable alignment
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
127 subscribers
Views
1635 views
Users
0 members are here
Related
Global variable alignment
Offline
Miguel Sebastián
over 7 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
Offline
Miguel Sebastián
over 7 years ago
Note: This was originally posted on 17th January 2011 at
http://forums.arm.com
Hi,
I have not received any answers, can someone help me on this?
Regards,
Miguel
Cancel
Up
0
Down
Reply
Cancel
Offline
Miguel Sebastián
over 7 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
Up
0
Down
Reply
Cancel
Offline
Peter Harris
over 7 years ago
Note: This was originally posted on 17th January 2011 at
http://forums.arm.com
For RVCT 2.1 it is only specified to work for alignments of 1,2,4, or 8 - it is unclear what happens for alignments larger than this, although I suspect it is not guaranteed to do anything predictably.
FYI - in newer tool releases (RVCT4.1) it will work for the following alignments of n:
For local variables,
n
can take the values 1, 2, 4, or 8.
For global variables,
n
can take any value up to 0x80000000 in powers of 2.
Cancel
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
Optimized ARM version of memcmp
0
4384
views
3
replies
Latest
2 months ago
by
Ronan Synnott
Not Answered
Develop Kotlin apps with OpenCl to run in a Samsung mobile that use Mali G71
0
3876
views
2
replies
Latest
2 months ago
by
ARMStrongssen
Answered
FVP Debug problems for Blinky Example project on Cortex-M4
0
Fixed Virtual Platforms (FVPs)
Debugging
Cortex-M4
4729
views
2
replies
Latest
2 months ago
by
Sagittarius
Answered
Product license check-out for feature "platform_editor:202003" failed
0
ARM Development Suite (ADS)
DSTREAM
4702
views
2
replies
Latest
2 months ago
by
David DV
Suggested Answer
How to execute tag manipulation instructions in Cortex-A76 FVP
0
4600
views
2
replies
Latest
2 months ago
by
Stephen Theobald
<
>
View all questions in Arm Development Studio forum