Array storage requirements

A PowerBASIC array may contain up to 4,294,967,295 elements, and the data may occupy as much as all available memory.  However, all individual index numbers must fall within the range of a Long-integer variable (-2,147,483,648 to +2,147,483,647).

PowerBASIC stores array data in main memory for all array types (including LOCAL arrays).  Therefore, there is no arbitrary array size limit imposed by the amount of free stack space, such as can be experienced with large LOCAL nul-terminated, and Fixed-length string variables.  The availability of main memory is the prime consideration (typically up to 2 Gb can be used).  However, LOCAL arrays do require the storage of around 128 bytes on the stack for the array descriptor table.

 

See Also

Array Data Types

Subscripts

String arrays

Multidimensional arrays

Internal representations of arrays

Arrays within User-Defined Types

Array operations

POWERARRAY Object