fw4spl
CMakeCompilerABI.h
1 /*--------------------------------------------------------------------------*/
2 
3 /* Size of a pointer-to-data in bytes. */
4 #define SIZEOF_DPTR (sizeof(void*))
5 const char info_sizeof_dptr[] = {
6  'I', 'N', 'F', 'O', ':', 's', 'i', 'z', 'e', 'o', 'f', '_', 'd', 'p', 't', 'r', '[',
7  ('0' + ((SIZEOF_DPTR / 10)%10)),
8  ('0' + (SIZEOF_DPTR % 10)),
9  ']','\0'};
10 
11 /*--------------------------------------------------------------------------*/
12 
13 /* Application Binary Interface. */
14 #if defined(__sgi) && defined(_ABIO32)
15 # define ABI_ID "ELF O32"
16 #elif defined(__sgi) && defined(_ABIN32)
17 # define ABI_ID "ELF N32"
18 #elif defined(__sgi) && defined(_ABI64)
19 # define ABI_ID "ELF 64"
20 
21 /* Check for (some) ARM ABIs.
22  * See e.g. http://wiki.debian.org/ArmEabiPort for some information on this. */
23 #elif defined(__GNU__) && defined(__ELF__) && defined(__ARM_EABI__)
24 # define ABI_ID "ELF ARMEABI"
25 #elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEB__)
26 # define ABI_ID "ELF ARM"
27 #elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__)
28 # define ABI_ID "ELF ARM"
29 
30 #elif defined(__ELF__)
31 # define ABI_ID "ELF"
32 #endif
33 
34 #if defined(ABI_ID)
35 static char const info_abi[] = "INFO:abi[" ABI_ID "]";
36 #endif