Abstract
dc:description.abstractCompilers are the unseen heroes of Computer Science. They apply transformations to source code that improve the performance of applications so that users may use them without fault. The register allocation process is a critical phase of the compiler, assigning program values to fast access storage known as registers. Efficient register allocation can address memory wall challenges, but it is difficult given the task of assigning a finite number of registers to an infinite number of variables in a program, a problem that is NP-Complete. This is further complicated due to varying allocation policies that exist between different architectures. The lack of runtime and system information also makes efficient register allocation challenging. Although work has been done to improve the amount of information available during the register allocation process, it can still be limiting by what information is available in general. Documentation can also be sparse beyond developers choosing to explore a compiler’s source code to understand how it works, let alone the register allocation procedure. Our research explores ways to create a tunable register allocator. We detail a general overview of the current state of compiler implementations. We explain how one popular compiler toolchain technology, LLVM, performs this, along with a detailed description of its register allocation process. We then investigate ways to expose tunable parameters at the live range level for better control of the register allocation process. Using hardware performance counters, we can provide feedback to the register allocator at the instructions level. We see how learning about certain hardware counters, such as cache miss events, on a variable reference in a baseline allocation can help the compiler develop a better allocation policy. We finally analyze different performance monitoring metrics and how these may be integrated with the register allocator implemented by LLVM.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Masters
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor
- Texas State University
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Solis, Andrew J.
- Advisor dc:contributor.advisor
-
- Qasem, Apan
- Committee members dc:contributor.committeemember
-
- Burtscher, Martin
- Islam, Tanzima
Subjects
dc:subject × 3Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Dc Identifier Citation
- Solis, A. J. (2024). Towards constructing a tunable register allocator. [Master's thesis, Texas State University].