The Compiler-CBack Library

The Compiler-CBack library generates C code from the optimized front-end representation of a component.

The Stack-Analysis Module

This module analyzes the stack usage of a function. It's relatively straightforward and independent of the rest of the back end.

The CBack Module

This module has two main entry points: emit-tlf-gunk and emit-component. The former emits arbitrary C code needed by a given top-level form. The latter translates a Dylan function into actual C code.

The file cback.dylan contains more documentation about how things work.

Right now, the back end assumes that the optimizer has been run. It's unclear which optimizations can be skipped safely.

The Heap Module

This module emits local (per library) and global (per application) heaps. Extensive documentation can be found in heap.dylan.