www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000239

When Created: 07/26/1998 11:45:10
Against DJGPP version: 2.01
By whom: eriksandberg@geocities.com
Abstract: Incorrect alignment
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.

Note added: 04/13/1999 06:00:55
By whom: eliz@is.elta.co.il
This report is about GCC, not DJGPP.  We cannot correct genuine
GCC bugs.  This should be reported to GCC/Binutils maintainers.

Closed on 04/13/1999 06:00:30: Not a DJGPP problem.
By whom: eliz@is.elta.co.il

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010