Memory Allocation¶
Program Limits And Memory Usage¶
Ranges
Variables: ±9.99999E±126String arrays: Up to 2544 characters per stringLine numbers: 0-65535 inclusiveProgram line length: Up to 254 characters including line numberPrecision
Single precision variables have 6 digit resolution.Double precision variables have 14 digit resolution.Memory overhead
Program lines require 4 bytes minimum, as follows:
Line number: 2 bytesLine length: 1 byteCarriage return: 1 byte
Also each reserved word, operator, variable name character, special character and constant character requires 1 byte. Maximum program size in present versions: 54K Bytes (Page 0)
Dynamic (Run-Time) Memory Allocation¶
Symbol Table
Entries occupy: 7 Bytes each Maximum symbol table size: 16K Bytes
Single Precision Array
DIM A(X) occupies (X+1)*5+7 Bytes
Double Precision Array
DIM A!(X) occupies (X+1)*9+7 Bytes
String Array Elements
DIM A$(X,N) occupies (X+1)*N+7 Bytes
Array Size
Maximum number of elements in an array is 16,383.