Font Size: a A A

Research On Compiler Optimization Technologies For THUMP

Posted on:2004-02-15Degree:MasterType:Thesis
Country:ChinaCandidate:H M CuiFull Text:PDF
GTID:2168360122967311Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
THUMP is a high-performance 32-bit RISC processor which is designed and developed by Tsinghua University. Compiler is not only one of the most necessary components of the system, but also important during the processor development. The thesis discusses the design and implementation of optimized C,C++ and Java compilers for THUMP.Firstly the thesis introduces the frame and design of the C,C++ compiler, and discusses the implementation of the compiler based on GCC, which is a retargetable compiler. The implementation considers the architecture of THUMP, including the delay slots, the instruction interlock, macro expansion, and libraries for soft-float. And addresses the process developing the cross compiler and native compiler for THUMP.Then the thesis presents two peephole optimizations for the C,C++ compiler based on the architecture of THUMP to improve the quality of generated codes. One optimization is on multimedia applications. Since THUMP supports two MMX instructions, the optimized compiler can generate these instructions to improve the performance. The other optimization is on multiplication of immediate operand and variable. This optimization is based on the multiply/divide unit and utilizes its pipeline. Both of these optimizations can reduce the execution time and size of object codes.Finally the thesis discusses the design of optimized Java compiler for THUMP. Based on the research of dynamic compilation, the design of the compiler is studied. ORP, which is a dynamic compiler, is considered to transplant from x86 to THUMP, due to the analysis of it mechanisms of profiling and recompilation. And two optimizations are designed for THUMP based on ORP.
Keywords/Search Tags:Retargetable compiler, Compiler optimization, GCC, Peephole optimization, Dynamic compilation, ORP
PDF Full Text Request
Related items