Runtime Behavior of Conversion Interpretation of Subtyping

  • Authors:
  • Yasuhiko Minamide

  • Affiliations:
  • -

  • Venue:
  • IFL '02 Selected Papers from the 13th International Workshop on Implementation of Functional Languages
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

A programming language with subtyping can be translated into a language without subtyping by inserting conversion functions. Previous studies of this interpretation showed only the extensional correctness of the translation. We study runtime behavior of translated programs and show that this translation preserves execution time and stack space within a factor determined by the types in a program. Both the proofs on execution time and stack space are based on the method of logical relations where relations are extended with the factor of slowdown or increase of stack space.