Chapter 7. The TOM Runtime Library

Table of Contents
7.1. Program startup
7.2. C names for TOM types
7.3. Selectors
7.4. Message dispatching
7.5. More types
7.6. Functions

The TOM Runtime Library is the library that enables TOM programs to run. It contains the data structures needed for every method invocation; it performs object allocation, garbage collection, etc.

In C, all functionality of TOM and the TOM runtime can be obtained by including <tom/util.h>. This will also include the header generated by the resolver for the tom unit.

7.1. Program startup

From the start of a TOM program, the following sequence of actions takes place: