Compositional type systems for stack-based low-level languages

  • Authors:
  • Ando Saabas;Tarmo Uustalu

  • Affiliations:
  • Institute of Cybernetics at Tallinn University of Technology, Tallinn, Estonia;Institute of Cybernetics at Tallinn University of Technology, Tallinn, Estonia

  • Venue:
  • CATS '06 Proceedings of the 12th Computing: The Australasian Theroy Symposium - Volume 51
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is widely believed that low-level languages with jumps must be difficult to reason about by being inherently non-modular. We have recently argued that this in untrue and proposed a novel method for developing compositional natural semantics and Hoare logics for low-level languages and demonstrated its viability on the example of a simple low-level language with expressions (Saabas & Uustalu 2005). The central idea is to use the implicit structure of finite disjoint unions present in low-level code as an (ambiguous) phrase structure.Here we apply our method to a stack-based language and develop it further. We define a compositional natural semantics and Hoare logic for this language and go then on to show that, in addition to Hoare logics, one can also derive compositional type systems as weaker specification languages with the same method. We describe type systems for stack-error freedom and secure information flow.