EmbDev.net

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


Author: Dustin Sr (dbrazeau)
Posted on:

Rate this post
0 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?

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 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

Author: Dustin Sr (dbrazeau)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.