{"id":{"repo_id":"texas-state","oai_identifier":"oai:digital.library.txst.edu:10877/18641"},"canonical_url":"https://search.ndltd.org/etd/texas-state/oai:digital.library.txst.edu:10877/18641","repository":{"repo_id":"texas-state","name":"Texas State University","base_url":"https://digital.library.txst.edu/server/oai/request"},"display":{"title":"Towards Constructing a Tunable Register Allocator","abstract":"Compilers 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.","abstract_html":"Compilers 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.","abstract_has_math":false,"creators":["Solis, Andrew J."],"institution":"Texas State University","degree_name":"Master of Science","degree_level":"Masters","degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Qasem, Apan"],"committee_chairs":[],"committee_members":["Burtscher, Martin","Islam, Tanzima"],"year":2024,"date_issued":"2024-05","date_published":"2024-05","updated_at":"2026-11-20T16:07:16Z","subjects":["compiler","register allocation","tunable register allocator"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Solis, A. J. (2024). Towards constructing a tunable register allocator. [Master's thesis, Texas State University]."],"render_values":[{"text":"Solis, A. J. (2024). Towards constructing a tunable register allocator. [Master's thesis, Texas State University].","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10877/18641","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10877/18641","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atexas-state%3Aoai%3Adigital.library.txst.edu%3A10877%2F18641","prefix":"oai_dc"},"source_record":{"url":"https://digital.library.txst.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adigital.library.txst.edu%3A10877%2F18641","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Qasem, Apan"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Burtscher, Martin","Islam, Tanzima"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:creator","label":"Author","values":["Solis, Andrew J."]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2024-05-09T15:35:42Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2024-05-09T15:35:42Z"]},{"key":"dc:date.issued","label":"Date","values":["2024-05"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Texas State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["compiler","register allocation","tunable register allocator"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Solis, A. J. (2024). Towards constructing a tunable register allocator. [Master's thesis, Texas State University]."]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10877/18641"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Compilers 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."]},{"key":"dc:format","label":"Dc Format","values":["Text"]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["43 pages"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["1 file (.pdf)"]},{"key":"dc:title","label":"Title","values":["Towards Constructing a Tunable Register Allocator"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Qasem, Apan"],"dc:contributor.committeemember":["Burtscher, Martin","Islam, Tanzima"],"dc:contributor.department":["Computer Science"],"dc:creator":["Solis, Andrew J."],"dc:date.accessioned":["2024-05-09T15:35:42Z"],"dc:date.available":["2024-05-09T15:35:42Z"],"dc:date.issued":["2024-05"],"dc:description.abstract":["Compilers 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."],"dc:format":["Text"],"dc:format.extent":["43 pages"],"dc:format.medium":["1 file (.pdf)"],"dc:identifier.citation":["Solis, A. J. (2024). Towards constructing a tunable register allocator. [Master's thesis, Texas State University]."],"dc:identifier.uri":["https://hdl.handle.net/10877/18641"],"dc:language.iso":["en"],"dc:subject":["compiler","register allocation","tunable register allocator"],"dc:title":["Towards Constructing a Tunable Register Allocator"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Texas State University"]},"updated_at":"2026-11-20T16:07:16Z"}