bug-gmp
[Top][All Lists]
Advanced

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

ABI on AIX


From: Tony Reix
Subject: ABI on AIX
Date: Fri, 28 Feb 2003 18:18:54 +0100

Hi,

Here is what configure does on my AIX 4.3.3 machine about ABI:

# configure :
.....
using ABI="aix64"
      CC="cc"
      CFLAGS="-g -O2 -q64 -qtune=pwr3 -qmaxmem=20000"
      CPPFLAGS=""
      MPN_PATH=" powerpc64 generic"

-q64 means that I can't use GMP on a AIX 32bit machine !?

I don't understand why the configuration of GMP forces -q64 on AIX.
I thought the type "long long" would help.
Maybe you mean that "long long" is not efficient enough ?

Here is the definition of basic 64bits types in AIX 4.3.3 :
        (from /usr/include/inttypes.h)

#ifdef  __64BIT__
typedef signed long             int64_t;
#else   /* _ILP32 */
#if defined(_LONG_LONG)
typedef signed long long        int64_t;
#endif
#endif

Can't you rely on int64_t ?


Regards,

Tony Reix



# extract from : isa_abi_headache

** PowerPC

While the PowerPC ABI's are capable of supporting 64-bit
registers/operations, the compilers under AIX are similar to Solaris'
cc in that they don't currently provide any 32-bit addressing with
64-bit arithmetic.

     option                     interpretation
     ======                     ==============
cc   -q64                       ABI=64bit (implying AR=64, PTR=64)
gcc  -maix64 -mpowerpc64        ABI=64bit (implying AR=64, PTR=64)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]