Mail Archives: djgpp/2000/03/09/06:40:33
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 -