首页> 美国政府科技报告 >Stack-Based Typed Assembly Language
【24h】

Stack-Based Typed Assembly Language

机译:基于堆栈的类型汇编语言

获取原文

摘要

In previous work, we presented Typed Assembly Language (TAL). TAL is sufficiently expressive to serve as a target language for compilers of high level languages such as ML. That work assumed such a compiler would perform a continuation passing style transform and eliminate the control stack by heap allocating activation records. However, most compilers are based on stack allocation. This paper presents STAL, an extension of TAL with stack constructs and stack types to support the stack allocation style. We show that STAL is sufficiently expressive to support languages such as Java, Pascal, and ML; constructs such as exceptions and displays; and optimizations such as tail call elimination and callee saves registers. This paper also formalizes the typing connection between CPS based compilation and stack based compilation and illustrates how STAL can formally model calling conventions by specifying them as formal translations of source function types to STAL types.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号