AIX Questions

Vincent Lefevre vincent at vinc17.org
Wed Jul 23 23:43:35 CEST 2008


On 2008-07-23 19:54:35 +0200, Torbjorn Granlund wrote:
> Perhaps __64BIT__ is defined by "the compiler", but it is not defined
> by any GCC on any of the machine I use.

FYI under Mac OS X 10.4:

prunille% gcc -dM -E -xc /dev/null | grep ppc
#define __ppc__ 1
prunille% gcc -dM -E -xc /dev/null -m64 | grep ppc
#define __ppc64__ 1
prunille%

prunille% gcc -dM -E -xc /dev/null | grep _LP 
prunille% gcc -dM -E -xc /dev/null -m64 | grep _LP
#define __LP64__ 1
#define _LP64 1
prunille%

and under Linux/x86_64:

vin% gcc -dM -E -xc /dev/null | grep 'amd\|x86'
#define __x86_64 1
#define __amd64 1
#define __x86_64__ 1
#define __amd64__ 1
vin% gcc -dM -E -xc /dev/null -m32 | grep 'amd\|x86'
vin%

vin% gcc -dM -E -xc /dev/null | grep '_LP'     
#define __LP64__ 1
#define _LP64 1
vin% gcc -dM -E -xc /dev/null -m32 | grep '_LP'
vin%

This would be the job of the autotools to find what needs to be tested
exactly.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list