Using Destination-Passing Style to Compile a Functional Language into Efficient Low-Level Code

Amir Shaikhha, Andrew Fitzgibbon, Simon Peyton Jones, Dimitrios Vytiniotis

Abstract

We show how to compile high-level functional array-processing programs, drawn from image processing and machine learning, into C code that runs as fast as hand-written C. The key idea is to transform the program to destination passing style, which in turn enables a highly-efficient stack-like memory allocation discipline.
BibTeX
@inproceedings{shaikhha2017using,
  author = {Amir Shaikhha and Andrew Fitzgibbon and Simon Peyton Jones and Dimitrios Vytiniotis},
  title = {{Using Destination-Passing Style to Compile a Functional Language into Efficient Low-Level Code}},
  booktitle = {FHPC@ICFP},
  year = {2017},
  doi = {10.1145/3122948.3122949},
}

Loading related content...

Figure