Abstract
In the early 1970s, Artificial Intelligence research was hampered by the "address explosion," where conventional computer architectures proved inefficient for the dynamic and recursive nature of LISP. This paper introduces MicroLISP, a specialized machine design from Xerox PARC that utilizes byte-coded postfix instructions, tagged stacks, and localized name tables. By tailoring the hardware to the structural properties of the language, MicroLISP achieves program sizes 2 to 5 times smaller than conventional compiled code while significantly simplifying compiler design.
Introduction
By 1973, the mismatch between hardware and high-level languages like LISP had become a significant bottleneck. Conventional computers, designed for fixed-type data and linear memory access, struggled with LISP’s reliance on dynamic storage and pointer-heavy structures. This led to "memory bloat," where half the bits in machine code were wasted on memory addresses, and "boxing" overhead for numerical operations. L. Peter Deutsch proposed MicroLISP to bridge this gap by creating a microprogrammed processor that natively understands LISP structures.
The MicroLISP Architecture
The core of MicroLISP's efficiency lies in its reimagined representation of code and data.
Byte-Sized Postfix Code
Instead of traditional long instructions with full memory addresses, MicroLISP uses 8-bit instructions. It represents S-expressions in postfix form (operands followed by operators), which naturally aligns with LISP's recursive evaluation.
Name Tables and Memory Layout
To combat the address explosion, MicroLISP avoids full 16- or 32-bit addresses for every variable reference. Since most functions only reference a small set of variables or other functions, the architecture uses short indices into a "Global Name Table" (GNT) or a "Local Name Table" (LNT).
This compact organization allows the machine to pack information tightly. As shown in Figure 1, the memory is structured to minimize overhead, using headers (t0-t7) and packed data slots (d0-d7) to represent function frames and name bindings efficiently.
Tagged Stack and Implicit Scoping
MicroLISP adds type tags (integer, floating point, pointer) directly to data on the stack. This enables the machine to perform arithmetic on temporary values without heap allocation, reducing garbage collection frequency. Furthermore, function entries include an argument count, allowing the machine to determine the end of sub-expressions implicitly and removing the need for explicit list delimiters in the bytecode.
Evaluation and Results
The architecture was evaluated using standard LISP benchmarks such as REVERSE and SUBST. The results demonstrated a dramatic improvement in code density:
- Code Density: MicroLISP programs were consistently 1/3 to 1/4 the size of BBN-LISP compiled programs. For example, the
REVERSEfunction required only 26 bytes in MicroLISP, compared to 36 LISP cells or 22 PDP-10 words (36 bits each). - Compiler Simplicity: Because the machine language closely mirrors the source language's structure, the MicroLISP compiler is roughly 1/3 the size of the BBN-LISP compiler.
Conclusion
MicroLISP demonstrated that architectural specialization can solve the memory efficiency problems of high-level languages. By eliminating "uninteresting" pointers and using structural encoding, Deutsch showed that it is possible to build a machine that is both more powerful for AI research and more efficient in its use of primary memory. While the initial results were based on simulations, they paved the way for future microprogrammed LISP machines.
Summary updated