EmbDev.net

Forum: ARM programming with GCC/GNU tools alignment issue in assembly file


von Dustin S. (dbrazeau)


Rate this post
useful
not useful
I'm receiving the error "Error: alignment too large: 15 assumed" for the
assembly line ".align DCACHE_LINE " where DCACHE_LINE is equ to 0x20 or
32 dec.
Is there any way to align with a larger number than 15?

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Did you try .align 5 ? IRC the "real" alignment is 2^parameter, the
binutils manual for the GNU assembler/gas should provide more
information

von Dustin S. (dbrazeau)


Rate this post
useful
not useful
Martin Thomas wrote:
> Did you try .align 5 ? IRC the "real" alignment is 2^parameter, the
> binutils manual for the GNU assembler/gas should provide more
> information

Ya, that is what I changed it to. Thanks.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.