【24h】

Static Determination of Quantitative Resource Usage for Higher-Order Programs

机译:静态测定高阶节目的定量资源用法

获取原文

摘要

We describe a new automatic static analysis for determining upper-bound functions on the use of quantitative resources for strict, higher-order, polymorphic, recursive programs dealing with possibly-aliased data. Our analysis is a variant of Tarjan's manual amortised cost analysis technique. We use a type-based approach, exploiting linearity to allow inference, and place a new emphasis on the number of references to a data object. The bounds we infer depend on the sizes of the various inputs to a program. They thus expose the impact of specific inputs on the overall cost behaviour. The key novel aspect of our work is that it deals directly with polymorphic higher-order functions without requiring source-level transformations that could alter resource usage. We thus obtain safe and accurate compile-time bounds. Our work is generic in that it deals with a variety of quantitative resources. We illustrate our approach with reference to dynamic memory allocations/deallocations, stack usage, and worst-case execution time, using metrics taken from a real implementation on a simple micro-controller platform that is used in safety-critical automotive applications.
机译:我们描述了一种新的自动静态分析,用于确定用于处理可能别名数据的严格,高阶,多态,多态,递归程序的定量资源的上限功能。我们的分析是Tarjan手册摊销成本分析技术的变种。我们使用基于类型的方法,利用线性度以允许推断,并在对数据对象的引用数量上进行新的重点。我们推断的界限依赖于对程序的各种输入的大小。因此,他们暴露了特定投入对整体成本行为的影响。我们的工作的关键新颖方面是它直接涉及多态高阶函数,而无需需要改变资源使用的源级转换。因此,我们获得了安全和准确的编译时界限。我们的工作是通用的,其涉及各种量化资源。我们使用从安全关键自动化汽车应用中使用的简单微控制器平台上的实际实现中获取的度量来说明我们的方法,参考动态内存分配/裁量分配,堆叠使用和最坏情况执行时间。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号