Allocates additional memory for AutoLISP
An integer indicating the amount of additional memory to be allocated. Memory is allocated as follows:
where n-alloc is the current segment size.
An integer indicating the number of free conses divided by n-alloc.
Set the segment size to 100:
_$ (alloc 100)
Allocate memory for two additional segments:
_$ (expand 2)
This ensures that AutoLISP now has memory available for at least 200 additional symbols, strings, usubrs and reals each, and 8200 free conses.