Hello,
It's the first time that I use an H8 microprocessor. I'm writing a program in H8 assembler (no C code at all) and I'm using GNU h8300-elf-as and h8300-elf-ld.
This processor needs alignment on even addresses for targets of jumps, branches, and for moving words and dwords.
Aligning data seems to be very easy: I put a ".balign 2" directive just before any word or dword data, to be sure they are aligned to an even address.
For the assembler code, should I manually put ".balign 2" directives just before every label definition? It's a bit crasy, don't you think? Is there a way to ask the assembler/linker to automatically align all the branch targets to even addresses?
Thank you in advance
Panino