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

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Wed Nov 5 19:51:23 CET 2003


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




More information about the Cplusplus-sig mailing list