Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
Atoms

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.

Structure

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.

atoms_structure.png
Atom structure

The areas outside REF and ID is left for atom-specific data.

Note
There are special atoms which do not have REF and ID.

Atom types

More details about specific atom types:


[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013