Loops in Combinator-Based Compilers. Wand, M. Information and Computation, 57(2-3):148--164, 1983. Previously appeared in \popl10th, 1983, pages 190--196
abstract   bibtex   
In our paper [Wand 82a], we introduced a paradigm for compilation based on combinators. A program from a source language is translated (via a semantic definition) to trees of combinators; the tree is simplified via associative and distributive laws) to a linear, assembly-language-like format; the ``compiler writer's virtual machine'' operates by simulating a reduction sequence of the simplified tree. The correctness of these transformations follows from general results about the $\lambda$-calculus. The code produced by such a generator is always tree-like. In this paper, the method is extended to produce target code with explicit loops. This is done by re-introducing variables into the terms of the target language in a restricted way, along with a structured binding operator. We also consider general conditions under which these transformations hold.
@Article{Wand83a,
  author = 	"Wand, Mitchell",
  title = 	"Loops in Combinator-Based Compilers",
  journal = 	"Information and Computation",
  year = 	1983,
  volume = 	"57",
  number = 	"2-3",
  pages = 	"148--164",
  OPTmonth = 	"",
  note = 	"Previously appeared in {\popl{10th}}, 1983, pages
		 190--196",
  source = {/proj/wand/old/popl83/ic.tex},
  abstract = "In our paper [Wand 82a], we introduced a paradigm for
		 compilation based on combinators.  A program from a
		 source language is translated (via a semantic
		 definition) to trees of combinators; the tree is
		 simplified via associative and distributive laws) to
		 a linear, assembly-language-like format; the
		 ``compiler writer's virtual machine'' operates by
		 simulating a reduction sequence of the simplified
		 tree.  The correctness of these transformations
		 follows from general results about the
		 $\lambda$-calculus.  The code produced by such a
		 generator is always tree-like.  In this paper, the
		 method is extended to produce target code with
		 explicit loops.  This is done by re-introducing
		 variables into the terms of the target language in a
		 restricted way, along with a structured binding
		 operator. We also consider general conditions under
		 which these transformations hold."
}

Downloads: 0