Compiler-CBack
LibraryThe Compiler-CBack
library generates C
code from the optimized front-end representation of a
component.
Stack-Analysis
ModuleThis module analyzes the stack usage of a function. It's relatively straightforward and independent of the rest of the back end.
CBack
ModuleThis 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.