【24h】

Compiling with code-size constraints

机译:使用代码大小约束进行编译

获取原文
获取原文并翻译 | 示例

摘要

Most compilers ignore the problems of limited code space in embedded systems. Designers of embedded software often have no better alternative than to manually reduce the size of the source code or even the compiled code. Besides being tedious and error-prone, such optimization results in obfuscated code which is difficult to maintain and reuse. In this paper, we present a code-size-directed compiler. We phrase register allocation and code generation as an integer linear programming problem where the upper bound on the code size can simply be expressed as an additional constraint. Our experiments show that our compiler, when applied to two commercial microcontroller programs, generates code as compact as carefully crafted code.
机译:大多数编译器忽略了嵌入式系统中代码空间有限的问题。嵌入式软件的设计人员通常没有比手动减小源代码甚至编译后的代码大小更好的选择。除了繁琐且容易出错之外,这种优化还会导致代码难以处理,难以维护和重用。在本文中,我们提出了一种代码大小定向的编译器。我们将寄存器分配和代码生成称为整数线性规划问题,其中代码大小的上限可以简单地表示为附加约束。我们的实验表明,将编译器应用于两个商业微控制器程序时,其生成的代码与精心设计的代码一样紧凑。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号