Re: [Dpcl-develop] DPCL on x86-64
Brought to you by:
dpcl-admin,
dwootton
From: Dave W. <dwo...@us...> - 2005-04-11 19:54:44
|
Assuming Dyninst uses __x86_64, use that. The only other define that looks like it makes sense is __x86_64__, and I don't see any other reason for choosing one over the other except for what the Dyninst code uses now. This should be used only for changes specific to the processor's instruction set, as was done with lock.c for ia64. Anything that is a 64 bit specific change unrelated to implementing support for this specific processor should still use the __64_BIT define unless we find problems with that. Dave Jim Galarowicz <je...@sg...> Sent by: dpc...@li... 04/11/2005 01:44 PM To Dave Wootton/Poughkeepsie/IBM@IBMUS cc Steve Collins <sl...@sg...>, dpc...@li..., per...@sg... Subject Re: [Dpcl-develop] DPCL on x86-64 Dave, Steve, This is "cpp -dM test.c" output from an EM64T machine: jeg/perftools> touch test.c jeg/perftools> cpp -dM test.c #define __athlon_sse__ 1 #define __DBL_MIN_EXP__ (-1021) #define __FLT_MIN__ 1.17549435e-38F #define __CHAR_BIT__ 8 #define __WCHAR_MAX__ 2147483647 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __FLT_EVAL_METHOD__ 0 #define __unix__ 1 #define unix 1 #define __x86_64 1 #define __SIZE_TYPE__ long unsigned int #define __ELF__ 1 #define __DBL_MIN_10_EXP__ (-307) #define __FINITE_MATH_ONLY__ 0 #define __FLT_RADIX__ 2 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __SSE_MATH__ 1 #define __athlon 1 #define __SHRT_MAX__ 32767 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __x86_64__ 1 #define __linux 1 #define __unix 1 #define __LDBL_MAX_EXP__ 16384 #define __LONG_MAX__ 9223372036854775807L #define __linux__ 1 #define __SCHAR_MAX__ 127 #define __DBL_DIG__ 15 #define __USER_LABEL_PREFIX__ #define linux 1 #define __STDC_HOSTED__ 1 #define __SSE2__ 1 #define __LDBL_MANT_DIG__ 64 #define __FLT_EPSILON__ 1.19209290e-7F #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __WCHAR_TYPE__ int #define __FLT_DIG__ 6 #define __FLT_MAX_10_EXP__ 38 #define __INT_MAX__ 2147483647 #define __amd64__ 1 #define __gnu_linux__ 1 #define __FLT_MAX_EXP__ 128 #define __DECIMAL_DIG__ 21 #define __DBL_MANT_DIG__ 53 #define __WINT_TYPE__ unsigned int #define __SSE__ 1 #define __MMX__ 1 #define __LDBL_MIN_EXP__ (-16381) #define __LDBL_MAX_10_EXP__ 4932 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define _LP64 1 #define __DBL_MAX__ 1.7976931348623157e+308 #define __tune_k8__ 1 #define __DBL_MAX_EXP__ 1024 #define __SSE2_MATH__ 1 #define __amd64 1 #define __athlon__ 1 #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __LONG_LONG_MAX__ 9223372036854775807LL #define __FLT_MAX__ 3.40282347e+38F #define __GXX_ABI_VERSION 102 #define __FLT_MIN_10_EXP__ (-37) #define __FLT_MIN_EXP__ (-125) #define __DBL_MAX_10_EXP__ 308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __DBL_MIN__ 2.2250738585072014e-308 #define __PTRDIFF_TYPE__ long int #define __LP64__ 1 #define __LDBL_MIN_10_EXP__ (-4931) #define __REGISTER_PREFIX__ #define __LDBL_DIG__ 18 #define __NO_INLINE__ 1 #define __FLT_MANT_DIG__ 24 #define __VERSION__ "3.3.3 (SuSE Linux)" Thanks, Jim G. Dave Wootton wrote: >Steve >The preprocessor should have a set of standard defines built in, one or >more of which is specific to the hardware platform. Can you run the >command 'cpp -dM test.c' where test.c can be any source file, even an >empty file, and provide the output? > >Dave > > > >Steve Collins <sl...@sg...> >Sent by: dpc...@li... >04/11/2005 01:17 PM > >To >dpc...@li... >cc >per...@sg..., je...@sg... >Subject >[Dpcl-develop] DPCL on x86-64 > > > > > > > > In the near future the Open/SpeedShop project will be required to run on >the >Opteron/EM64T architecture. This will require a #define specific to that >hardware. >None of the approved list of #defines (ia64, __64BIT__) work AFAICT. >Suggestions >from those 'in authority' are welcome. > > Thanks - SteveC, SGI >Compilers/Tools > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Dpcl-develop mailing list >Dpc...@li... >https://lists.sourceforge.net/lists/listinfo/dpcl-develop > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Dpcl-develop mailing list Dpc...@li... https://lists.sourceforge.net/lists/listinfo/dpcl-develop |