Register Allocation Optimization with GRASP, Tabu Search, and Simulated Annealing: A Comparative Study

- 325566
Complete Articles (CA)
Favorite this paper
How to cite this paper?
Abstract

This paper explores the use of metaheuristics for register allocation in compilers, modeled as a graph coloring problem. Due to its NP-complete nature, exact methods are often impractical, while metaheuristics appear as alternatives. In this paper, we implement and compare three metaheuristics — Greedy Randomized Adaptive Search Procedure (GRASP), Tabu Search (TS), and Simulated Annealing (SA) — aiming to minimize conflicts under different color constraints. Experiments were conducted on DIMACS benchmark graphs to simulate limited-register scenarios. TS performed better on dense graphs, SA was more effective on regular and sparse ones, and GRASP showed competitive results in specific cases. The findings suggest that metaheuristics are promising tools for improving register allocation and reducing memory usage, especially under tight hardware constraints.

Share your ideas or questions with the authors!

Did you know that the greatest stimulus in scientific and cultural development is curiosity? Leave your questions or suggestions to the author!

Sign in to interact

Have a question or suggestion? Share your feedback with the authors!

Institutions
  • 1 Universidade Tecnológica Federal do Paraná
Track
  • 12. MH – Metaheurístics
Keywords
Registrar Allocation
Graph Coloring
Metaheuristics