[C++-sig] Boost.Python, AIX, and gcc

J. Michael Owen mikeowen at llnl.gov
Wed Nov 5 20:11:46 CET 2003


I have tried it with g++ 3.2.1 and 3.2.3, both of which behave the same for
these tests.

On Wednesday 05 November 2003 10:51 am, Ralf W. Grosse-Kunstleve wrote:
> I think we should tell Doug. What gcc exactly are you using (g++
> --version)? Ralf
>
> --- "J. Michael Owen" <mikeowen at llnl.gov> wrote:
> > Hi Ralf,
> >
> > I tried out your test and it works just fine with g++ and xlC on AIX, so
> > I think I'm OK with extending that #ifdef.  Whew!  Thanks for the
> > follow-up, I feel a bit better about skipping those assert's now.
> >
> > Mike.
> >
> > On Tuesday 04 November 2003 07:52 pm, you wrote:
> > > --- "J. Michael Owen" <mikeowen at llnl.gov> wrote:
> > > Before I added the #ifdef I found out that the PowerPC does not have
> > > strict alignment requirements. So the worst consequence of the failure
> > > to find a proper alignment is (maybe?) a performance hit. What is the
> > > situation on our AIX machine? Does unaligned access cause a crash? Does
> > > the following run?
> > >
> > > #include <iostream>
> > >
> > > int main(void)
> > > {
> > >   char buf[2*sizeof(double)];
> > >   for(int i=0;i<sizeof(double);i++) {
> > >     double* d = (double*) &buf[i];
> > >     *d = 120.+i;
> > >     std::cout << *d << std::endl;
> > >   }
> > > }
> > >
> > > If this runs extending the #ifdef for your platform would seem
> > > acceptable to me.
> > >
> > > Ralf
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree

-- 
 "Hey...where are the sunflower seeds?" |       J. Michael Owen         
        o_o /                           |       Phone:  925-423-7160     
        (")                             |       Email:  mikeowen at llnl.gov
       \/'\/                            |
____(__(,_,)_______________________________________________________________




More information about the Cplusplus-sig mailing list