A hybrid intermediate language between SSA and CPS

Paulo Torrens, Cristiano Vasconcellos, Ju Gonçalves

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review


Compiler theory is usually studied individually according to the paradigms of the programming language being compiled. As noted by Kelsey, though the static single assignment (SSA) form has been used as intermediate language for imperative language compilers, and some variant of a continuation passing style (CPS) lambda calculus has been used as intermediate language for functional language compilers, they are (almost) equivalent and it is possible to draw syntactic translations between them.

This short paper aims to present an untyped intermediate language which may be interpreted as both SSA and CPS, in order to provide a common language for both imperative and functional compilers, as well to take advantage of optimizations designed for either one of the approaches. Finally, potential variants and research opportunities are discussed.
Original languageEnglish
Title of host publicationSBLP 2017 Proceedings of the 21st Brazilian Symposium on Programming Languages
Place of PublicationNew York
PublisherAssociation for Computing Machinery
Publication date2017
Article number1
ISBN (Print)978-1-4503-5389-2
Publication statusPublished - 2017
Event21st Brazilian Symposium on Programming Languages: Part of the 8th Brazilian Conference on Software (CBSoft) - University of Fortaleza, Fortaleza, Brazil
Duration: 21 Sept 201722 Sept 2018
Conference number: 21


Symposium21st Brazilian Symposium on Programming Languages
LocationUniversity of Fortaleza

Cite this