Re: alignment issues for sse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kimmo -

Yeah, for simple cases mine were always being aligned correctly too...
it wasn't until I was linking a large project together that things
started going awry.  Also, maybe it's just 3.3.5.

I'll try the long double thing though... sounds like a possibility :)

Thanks,
  Brian


On Thu, 17 Feb 2005 17:06:55 +0200 (EET), Kimmo Fredriksson
<kfredrik@xxxxxxxxxxxxx> wrote:
> On Thu, 17 Feb 2005, Brian Budge wrote:
> 
> > great.  My problem now is that I'm declaring variables on the stack
> > and they're not being aligned.
> 
> Hmm, I just tried this, and for me __m128 gets automatically correctly
> aligned, no matter which way I arrange the local declarations...
> 
> gcc 3.3.2 and gcc 4.0.0.
> 
> > Corey, you talk about advancing the pointer until it is aligned... is
> > there a trick like that for the stack?
> 
> {
>         ...
> 
>         long double aligningstuff;
>          __m128      this_is_16_bytes_aligned;
> 
>         ...
> }
> 
> and compile with `-m128bit-long-double' (this *should* be 16 byte aligned) ???
> 
> K
> 
>

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux