%eclent;
]>
Arrays
Array limits
&ECL; arrays can have up to 64 dimensions. CommonLisp constants
related to arrays have the following values in &ECL;.
Constant
Value
arrayranklimit
64
arraydimensionlimit
mostpositivefixnum
arraytotalsizelimit
arraydimensionlimit
Specializations
&ECL; provides specialized array types for several element kinds. In the following table we list those types, together with the machine type which is used to implement them, and the expected size.
Specialized type
Element C type
Size
bit

1 bit
character
unsigned char or uint32_t
Depends on character range
basechar
unsigned char
fixnum
cl_fixnum
Machine word (32 or 64 bits)
(signedbyte 8)
int8_t
8 bits
(unsignedbyte 8)
uint8_t
8 bits
(signedbyte 16)
int16_t
16 bits
(unsignedbyte 16)
uint16_t
16 bits
(signedbyte 32)
int32_t
32 bits
(unsignedbyte 32)
uint32_t
32 bits
(signedbyte 64)
int64_t
64 bits
(unsignedbyte 64)
uint64_t
64 bits
singlefloat or shortfloat
float
32bits IEEE float
doublefloat
double
64bits IEEE float
longfloat
long double
Between 96 and 128 bits.
t
cl_object
Size of a pointer.
Some of these specialized types might not exist in your platform. This is detected using conditional reading and features (See ).