跳到主要导航 跳到搜索 跳到主要内容

Analysis and approximation for bank selection instruction minimization on partitioned memory architecture

  • Minming Li*
  • , Chun Jason Xue
  • , Tiantian Liu
  • , Yingchao Zhao
  • *此作品的通讯作者

科研成果: 期刊稿件文章同行评审

摘要

A large number of embedded systems include 8-bit microcontrollers for their energy efficiency and low cost. Multi-bank memory architecture is commonly applied in 8-bit microcontrollers to increase the size of memory without extending address buses. To switch among different memory banks, a special instruction, Bank Selection, is used. How to minimize the number of bank selection instructions inserted is important to reduce code size for embedded systems. In this paper, we consider how to insert the minimum number of bank selection instructions in a program to achieve feasibility. A program can be represented by a control flow graph (CFG). We prove that it is NP-Hard to insert the minimum number of bank selection instructions if all the variables are pre-assigned to memory banks. Therefore, we introduce a 2-approximation algorithm using a rounding method. When the CFG is a tree or the out-degree of each node in the CFG is at most two, we show that we can insert the bank selection instructions optimally in polynomial time. We then consider the case when there are some nodes that do not access any memory bank and design a dynamic programming method to compute the optimal insertion strategy when the CFG is a tree. Experimental result shows the proposed techniques can reduce bank selection instructions significantly on partitioned memory architecture.

源语言英语
页(从-至)1-8
页数8
期刊ACM SIGPLAN Notices
45
4
DOI
出版状态已出版 - 4月 2010
已对外发布

联合国可持续发展目标

此成果有助于实现下列可持续发展目标:

  1. 可持续发展目标 7 - 经济适用的清洁能源
    可持续发展目标 7 经济适用的清洁能源

指纹

探究 'Analysis and approximation for bank selection instruction minimization on partitioned memory architecture' 的科研主题。它们共同构成独一无二的指纹。

引用此