Lhogho
0.0.027
|
Atoms contains functions and definitions for managing Logo atoms - creation, processing, and destruction. Atoms have unified length, thus they can be stored in a single pool.
Most atoms occupy same-sized block of 16 bytes. If an atom needs more space (like character string for word atoms) it uses additional memory. Some special atoms like extended list nodes use blocks from an additional pool of atoms. These blocks are larger then the ordinary blocks. Currently they are 20 bytes.
Common atoms have a common header - a reference count and an id. The elements of common atoms can be accessed by macros REF and ID.
The areas outside REF
and ID
is left for atom-specific data.
REF
and ID
.More details about specific atom types: