www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/09/06:40:33

From: Pavel Semjanov <psw AT ssl DOT stu DOT neva DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 8 bytes alignment
Date: Thu, 09 Mar 2000 12:33:17 +0300
Organization: SSL
Lines: 40
Message-ID: <38C76FDD.92C711A7@ssl.stu.neva.ru>
References: <38C4AA6F DOT 6EFAA0A6 AT ssl DOT stu DOT neva DOT ru> <38C5375A DOT 8B4B1EA1 AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: psw.ssl.stu.neva.ru
Mime-Version: 1.0
X-Trace: goblin.stu.neva.ru 952594164 29140 194.85.97.70 (9 Mar 2000 09:29:24 GMT)
X-Complaints-To: usenet AT goblin DOT stu DOT neva DOT ru
NNTP-Posting-Date: 9 Mar 2000 09:29:24 GMT
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> Pavel Semjanov wrote:
> >
> >  I'm trying to write MMX-code and need to use 8-bytes aligned data.
> > I didn't find any suitable gcc option
> 
> Hmm?  Doesn't -malign-double and -mpreferred-stack-boundary work for you?

Then I use -malign-double the warning below disappears, but data still
is not aligned. -mpreferred... doesn't help because the data I use is
global, not local.
The only way I found is compile to asm, next I change .comm directives
to .global and .space ones, and insert .p2align 8 before.

> 
> > and when I'm using
> > __attribute__ ((aligned (8)) gcc gives me the warning:
> > "aaa.c:64: warning: alignment of `pwarray' is greater than maximum
> > object file alignment. Using 4."
> >
> > Sure I'm using latest DJGPP, gcc and binutils.
> 
> Only Binutils 2.9.5.1, the latest port uploaded a couple of days ago,
> supports alignment of sections that is greater than 4 bytes.  All the
> previous DJGPP ports of Binutils used a 4-byte section and subsection
> alignment.
> 
> Are you sure you have Binutils 2.9.5.1?  What does "as --version" 
print?

Yes, I use this version. Thanks for your reply.



-- 

   SY / C4acT/\uBo          Pavel Semjanov
   _   _         _   http://www.ssl.stu.neva.ru/psw/
  | | |-| |_|_| |-|      2:5030/145 DOT 17 AT fidonet

- Raw text -


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