2 % (c) The AQUA Project, Glasgow University, 1998
4 \section[NativeInfo]{Module @NativeInfo@}
6 Misc information about the characteristics of the host
7 architecture/machine lucky enough to run your program.
14 isBigEndian -- :: Bool
19 , sizeofAddr -- :: Word32
20 , sizeofDouble -- :: ""
49 #ifdef WORDS_BIGENDIAN
56 Host architecture and OS info:
66 @sizeofX@ returns the size of the (basic) type X (in 8-bit byte units.)
68 (Do not provide a type class for this, since writing out sizeofX is shorter
69 (and more consise) than using an overloaded function that returns the sizeof
70 at a particular type.)
74 sizeofAddr = ADDR_SIZE_IN_BYTES
76 sizeofDouble :: Word32
77 sizeofDouble = DOUBLE_SIZE_IN_BYTES
80 sizeofFloat = FLOAT_SIZE_IN_BYTES
83 sizeofInt = INT_SIZE_IN_BYTES
86 sizeofWord = WORD_SIZE_IN_BYTES
89 sizeofChar = CHAR_SIZE_IN_BYTES