Mail Archives: djgpp/1997/05/09/11:33:14
I've checked the archives. It seems that doubles (and ints too) are not
aligned on a boundary that is their size, but on a boundary that is HALF
of their size. I have 50% chance that they're aligned properlly, so all
I can do is align them manually by adding some variables beafore.
So my interpretation of FAQ section 14.3 was right? Am I right or not?
__attribute__ ((aligned (8))) doesn't seem to work. Is there really no
way to align a global variable in DJGPP?
I find out that puting - asm (" .align 5 ") - (it don't have to be 5,
can be other number) beafore some peace of code have an infuence on its
alignment. The global variables are kept after the code so this method
won't work with them.
- Raw text -