2010-01-12 14:38:13 +00:00
|
|
|
PROGRAM CMakeFortranCompilerABI
|
|
|
|
#if 0
|
|
|
|
! Address Size
|
|
|
|
#endif
|
|
|
|
#if defined(_LP64)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
|
|
|
#elif defined(_M_IA64)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
|
|
|
#elif defined(_M_X64)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
|
|
|
#elif defined(_M_AMD64)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
2014-04-10 16:55:22 +00:00
|
|
|
#elif defined(__x86_64__)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
2010-01-12 14:38:13 +00:00
|
|
|
|
|
|
|
#elif defined(_ILP32)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[4]'
|
|
|
|
#elif defined(_M_IX86)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[4]'
|
2014-04-10 16:55:22 +00:00
|
|
|
#elif defined(__i386__)
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[4]'
|
2011-11-29 20:13:47 +00:00
|
|
|
|
|
|
|
#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 8
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
|
|
|
#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ == 4
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[4]'
|
2013-12-06 14:01:32 +00:00
|
|
|
#elif defined(__SIZEOF_SIZE_T__) && __SIZEOF_SIZE_T__ == 8
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[8]'
|
|
|
|
#elif defined(__SIZEOF_SIZE_T__) && __SIZEOF_SIZE_T__ == 4
|
|
|
|
PRINT *, 'INFO:sizeof_dptr[4]'
|
2010-01-12 14:38:13 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
! Application Binary Interface
|
|
|
|
#endif
|
2019-01-11 18:50:46 +00:00
|
|
|
#if defined(__ELF__)
|
2010-01-12 14:38:13 +00:00
|
|
|
PRINT *, 'INFO:abi[ELF]'
|
|
|
|
#endif
|
|
|
|
PRINT *, 'ABI Detection'
|
2009-07-13 15:24:01 +00:00
|
|
|
END
|