Publication | Closed Access
Memory coloring: a compiler approach for scratchpad memory management
107
Citations
22
References
2005
Year
Unknown Venue
EngineeringCompiler TechnologyComputer ArchitectureSoftware EngineeringScratchpad MemoryMemory Model (Programming)Software AnalysisHardware SecurityHigh-performance ArchitectureMemory ColoringParallel ComputingCompilersMemory ManagementSpm ManagementComputer EngineeringComputer ScienceMemory ArchitectureProgram AnalysisParallel ProgrammingSystem Software
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.
| Year | Citations | |
|---|---|---|
Page 1
Page 1