[Cbe-oss-dev] Does the gcc attribute ((aligned 128))); work?
Akira Tsukamoto
akirat at rd.scei.sony.co.jp
Wed May 27 15:05:55 EST 2009
Hi,
> Thank you for your explanation.. I'm using local variables and I
> hadn't realized what I am doing wrong until your message.
If you are using ppu-gcc of spu-gcc distributed by IBM Cell SDK,
then adding -fstrict-aligned compiler option will also work
correctly for containing __attribute__((aligned(...)))
variables allocated on the stack as local variables.
Please try.
regards,
Akira
On Tue, 26 May 2009 19:34:20 -0300,
Guilherme Cox <cox at computer.org> mentioned:
> Hi Henry, you are totally right.
>
> Thank you for your explanation.. I'm using local variables and I
> hadn't realized what I am doing wrong until your message.
>
> Regards,
>
> Guilherme
>
> On Tue, May 26, 2009 at 6:40 PM, Sylvain HENRY <hsyl20 at gmail.com> wrote:
> > Hi,
> >
> > Guilherme Cox a 馗rit :
> >>
> >> Hi,
> >>
> >
> > Are you using global variable or local variable (on the stack)? I had the
> > same problem with local variables. Obviously the compiler has no way to know
> > statically what will be the alignment of the stack pointer when the function
> > will be called.
> >
> >
> > Cheers,
> >
> > Sylvain
> >
>
>
>
> --
> .cox
>
> Walt Disney - "I love Mickey Mouse more than any woman I have ever
> known." - http://www.brainyquote.com/quotes/authors/w/walt_disney.html
> _______________________________________________
> cbe-oss-dev mailing list
> cbe-oss-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev
--
Akira Tsukamoto
Sony Computer Entertainment Inc.
Distributed OS Development Dept.
Japan
More information about the cbe-oss-dev
mailing list