Memory coloring: a compiler approach for scratchpad memory management
Authors:
- 1 January 2005
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 1089795X,p. 329-338
Abstract
Scratchpad memory (SPM), a fast software-managed on-chip SRAM, is now widely used in modern embedded processors. Compared to hardware-managed cache, it is more efficient in performance, power and area cost, and has the added advantage of better time predictability. This paper introduces a general-purpose compiler approach, called memory coloring, to efficiently allocating the arrays in a program to an SPM. The novelty of our approach lies in partitioning an SPM into a "register file", splitting the live ranges of arrays to create potential data transfer statements between the SPM and off-chip memory, and finally, adapting an existing graph-colouring algorithm for register allocation to assign the arrays in the program into the register file. Our approach is efficient due to the practical efficiency of graph-colouring algorithms. We have implemented this work in SUIF and machSUIF. Preliminary results over benchmarks show that our approach represents a promising solution to automatic SPM management.Keywords
This publication has 15 references indexed in Scilit:
- EMBARC2004
- A generalized algorithm for graph-coloring register allocation2004
- Compiler-decided dynamic memory allocation for scratch-pad based embedded systems2003
- Efficient utilization of scratch-pad memory in embedded processor applications2002
- An optimal memory allocation scheme for scratch-pad-based embedded systemsACM Transactions on Embedded Computing Systems, 2002
- Optimal spilling for CISC machines with few registers2001
- Storage allocation for embedded processors2001
- Fusion-based register allocationACM Transactions on Programming Languages and Systems, 2000
- Iterated register coalescingACM Transactions on Programming Languages and Systems, 1996
- Points-to analysis in almost linear time1996