www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/09/11:33:14

Message-ID: <337343D3.4A32@silesia.top.pl>
Date: Fri, 09 May 1997 17:33:39 +0200
From: Michal <wapex AT silesia DOT top DOT pl>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Alignment

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019