www.delorie.com/djgpp/bugs/show.cgi | search |
Both .balign and .align seem to align relatively to the first code in the module, not to 0. For example, in a program that only contains void main(void) {asm(".align 15 ; add %%eax,%%eax":::"%eax");} the add will be placed at address (_main + 0x8000), not (0x8000) as you could expect. The same thing applies to variables aligned with __attribute__((aligned)). This is a problem, since access to misaligned variables can be up to eight times slower than access to aligned ones.
This report is about GCC, not DJGPP. We cannot correct genuine GCC bugs. This should be reported to GCC/Binutils maintainers.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |