Selective Thunkification. Steckler, P. & Wand, M. In Static Analysis: First International Static Analysis Symposium , volume 864, pages 162-178. Springer-Verlag, Berlin, Heidelberg, and New York, September, 1994.
Selective Thunkification [ps]Paper  abstract   bibtex   
Recently, Amtoft presented an analysis and transformation for mapping typed call-by-name programs to call-by-value equivalents. Here, we present a comparable analysis and transformation for untyped programs using dataflow analysis. In the general case, the transformation generates thunks for call site operands of a call-by-name program. Using strictness information derived as part of a larger flow analysis, we can determine that some operands are necessarily evaluated under call-by-name, so the transformation does not need to generate thunks for them. The dataflow analysis is formulated as the solution to a set of constraints. We show that any solution to the constraints is sound, and that any such solution justifies the resulting transformation.
@InCollection{StecklerWand94,
  author = 	"Paul Steckler and Mitchell Wand",
  title = 	"Selective Thunkification",
  booktitle = 	"Static Analysis:  First International Static Analysis
		 Symposium ",
  publisher = 	springer,
  year = 	"1994",
  editor = 	"Baudouin Le Charlier",
  volume = 864,
  OPTchapter = 	"",
  pages = 	"162-178",
  address = 	springeraddr,
  month = 	sep,
  abstract = "Recently, Amtoft presented an analysis and
		 transformation for mapping typed call-by-name
		 programs to call-by-value equivalents.  Here, we
		 present a comparable analysis and transformation for
		 untyped programs using dataflow analysis.  In the
		 general case, the transformation generates thunks for
		 call site operands of a call-by-name program.  Using
		 strictness information derived as part of a larger
		 flow analysis, we can determine that some operands
		 are necessarily evaluated under call-by-name, so the
		 transformation does not need to generate thunks for
		 them.  The dataflow analysis is formulated as the
		 solution to a set of constraints.  We show that any
		 solution to the constraints is sound, and that any
		 such solution justifies the resulting
		 transformation.",
  URL = "ftp://ftp.ccs.neu.edu/pub/people/wand/papers/sas-94.ps",
}

Downloads: 0