标题: | 在即时编译器中针对混合固定长度指令集所设计的暂存器分配演算法以求缩减程式码 Register Allocation of JIT Compiler for Mixed-Width ISA for Code Size Reduction |
作者: | 杨天元 Yang, Tian-Yuan 单智君 Shann, Jyh-Jiun 资讯科学与工程研究所 |
关键字: | 混合长度指令集;暂存器分配;mixed-width ISA;register allocation |
公开日期: | 2009 |
摘要: | 在嵌入式系统中储存程式的记忆体是相当重要的资源,于是减少程式码的大小成为了重要的议题。其中一种解决方法是用“混合宽度指令集架构”。一般而言,这样的架构提供了两种固定长度指令集,能够执行一般指令(通常为32位元)以及短指令(通常为16位元)。在这样的架构中程式可由两种指令组合而成,如果程式使用了越多的短指令其程式码大小就越小。然而短指令上有着一些限制,例如只能使用较短立即值范围以及存取较少的暂存器,这些都影响了程式中短指令使用的比例多寡,其中如何分配可被短指令存取的暂存器影响最大。这篇论文中我们针对混合宽度指令集架构提出了一个适用于即时编译器的快速暂存器演算法,这个演算法能得到26%程式码缩减。 In embedded system, memory is a precious resource, and that reducing program code size becomes an important issue. One promising approach for code reduction is employing “mixed-width instruction set architecture (ISA)”. This kind of architecture usually provides two fixed width instruction sets, a long instruction set (usually 32-bit) and a short instruction set (usually 16-bit). In other words, program can be compiled into native code by using these two kinds of instructions mixedly. Obviously, the more short instructions are used in the program, the smaller program will be. However, there are some limitations for using short instructions. For example, they can only encode smaller range of immediate value and a subset of whole architecture registers. The short of registers is the most important issue among all limitations. Consequently, a register allocation which can allocate register more appropriately is needed for mixed-width ISA. In this thesis we propose a fast specific register allocation algorithm for JIT compiler which is more suitable for mixed-width instruction set architecture than traditional ones and get about 26% code size reduction with neglectable performance loss. |
URI: | http://140.113.39.130/cdrfb3/record/nctu/#GT079655556 http://hdl.handle.net/11536/43361 |
显示于类别: | Thesis |
文件中的档案:
If it is a zip file, please download the file and unzip it, then open index.html in a browser to view the full text content.