DocumentCode
1827208
Title
Reducing Code Size by Graph Coloring Register Allocation and Assignment Algorithm for Mixed-Width ISA Processor
Author
Wang, Jyh-Shian ; Wu, I-Wei ; Chen, Yu-Sheng ; Shann, Jean Jyh-Jiun ; Hsu, Wei-Chung
Author_Institution
Dept. of Comput. Sci., Nat. Chiao Tung Univ., Hsinchu, Taiwan
Volume
2
fYear
2009
fDate
29-31 Aug. 2009
Firstpage
174
Lastpage
181
Abstract
Reducing program size is a critical issue in many embedded systems which require more functionalities without increasing the memory size. One of the approaches is to adopt a mixed-width instruction set architecture (ISA) which usually has an instruction set in general formats (usually 32-bit long) as normal instruction set and an instruction set in shorter format(usually 16-bit long) with limited opcodes and set of registers. Traditionally, a code segment can been coded in only one format, no multiple formats interleaved. However, more and more processors use instruction encoding to indicate the length of each individual instruction and take mixed-width ISA into instruction-level granularity. For this kind of ISAs, the number of instructions can be encoded in shorter format is highly dependent on the limited set of registers that can be accessed by shorter format instructions. In this paper, we present a register allocation and assignment algorithm based on graph coloring, which uses a heuristic model to find out which virtual variables in program should be assigned into the set of registers accessible by shorter instructions. The simulation results show that 63.34%of the instructions can be translated into shorter format on average.
Keywords
embedded systems; graph colouring; instruction sets; microprocessor chips; optimising compilers; assignment algorithm; code size reduction; embedded systems; graph coloring register allocation; heuristic model; instruction encoding; instruction-level granularity; mixed-width ISA processor; mixed-width instruction set architecture processor; Computer architecture; Computer science; Embedded system; Encoding; Hardware; Instruction sets; Reduced instruction set computing; Registers; Switches; Thumb; Compiler; Embedded Processor; Mixed-Width ISA; Register allocation;
fLanguage
English
Publisher
ieee
Conference_Titel
Computational Science and Engineering, 2009. CSE '09. International Conference on
Conference_Location
Vancouver, BC
Print_ISBN
978-1-4244-5334-4
Electronic_ISBN
978-0-7695-3823-5
Type
conf
DOI
10.1109/CSE.2009.100
Filename
5284287
Link To Document