Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
Aligns an address expression to a specified boundary.
This function returns:
(expr + (align-1)) & ~(align-1))
Where:
expr is a valid address expression.
expr
align is the alignment, and must be a positive power of 2.
align
It increases expr until:
expr ≡ 0 (mod align)
This example aligns the address of ER2 on an 8-byte boundary:
ER2
ER +0 { … } ER2 AlignExpr(+0x8000,8) { … }
The following relationship exists between ALIGN and AlignExpr:
ALIGN
AlignExpr
Load and execution regions already have an ALIGN keyword:
For load regions the ALIGN keyword aligns the base of the load region in load space and in the file to the specified alignment.
For execution regions the ALIGN keyword aligns the base of the execution region in execution and load space to the specified alignment.
Aligns the expression it operates on, but has no effect on the properties of the load or execution region.
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.