]> pd.if.org Git - lice/blob - arch_dummy.h
autocommit for files dated 2014-11-17 20:15:26
[lice] / arch_dummy.h
1 #ifndef LICE_ARCH_DUMMY_HDR
2 /*
3  * File: arch_dummy.h
4  *  Stubded dummy architecture useful as a template for retargeting
5  *  LICE.
6  */
7
8 /*
9  * Constants: Native type sizes
10  *
11  *  The following are macros which describe the sizes of various native
12  *  data types, they should reflect their true sizes on the given
13  *  architecture unless mentioned otherwise by a specific ABI.
14  *
15  *  ARCH_TYPE_SIZE_CHAR     - Size of a char
16  *  ARCH_TYPE_SIZE_LONG     - Size of a long
17  *  ARCH_TYPE_SIZE_LLONG    - Size of a long long
18  *  ARCH_TYPE_SIZE_INT      - Size of a int
19  *  ARCH_TYPE_SIZE_SHORT    - Size of a short
20  *  ARCH_TYPE_SIZE_FLOAT    - Size of a float
21  *  ARCH_TYPE_SIZE_DOUBLE   - Size of a double
22  *  ARCH_TYPE_SIZE_LDOUBLE  - Size of a long double
23  *  ARCH_TYPE_SIZE_POINTER  - Size of a pointer
24  */
25 #define ARCH_TYPE_SIZE_CHAR      -1
26 #define ARCH_TYPE_SIZE_LONG      -1
27 #define ARCH_TYPE_SIZE_LLONG     -1
28 #define ARCH_TYPE_SIZE_INT       -1
29 #define ARCH_TYPE_SIZE_SHORT     -1
30 #define ARCH_TYPE_SIZE_FLOAT     -1
31 #define ARCH_TYPE_SIZE_DOUBLE    -1
32 #define ARCH_TYPE_SIZE_LDOUBLE   -1
33 #define ARCH_TYPE_SIZE_POINTER   -1
34
35 /*
36  * Macro: ARCH_ALIGNMENT
37  *  The default alignment of structure elements (padding) for the given
38  *  architecture / ABI
39  */
40 #define ARCH_ALIGNMENT           -1
41 #endif