CMP - United Business Media TechOnline
All Articles Products Courses Papers VirtuaLabs Webinars Web



 
LoginRegister
      TechOnline > Learning >  Technical Paper
Technical Papers
Automatic Cache Hint Instructions Insertion on StarCore SC3850 DSP

Click to Download
pdf logo
White Paper
196 KB (12 pages)
May 2009
 

Kostantin Godin et al
Freescale Semiconductor

The newly released Freescale SC3850 StarCore DSP implements new cache hint instructions that allow a compiler or an assembly language programmer to minimize cache-miss latency by allocating data into a cache before it is accessed. These instructions affect the performance, but not the functionality, of software in which they are used. In theory, intelligent use of L1 cache hints can result in zero memory overhead, but in many situations, changing the algorithm is hard.

This article examines an automatic flow for cache hint instruction insertion into existing code using profiler feedback:

  • DFETCH/PFETCH instructions are used to prefetch read misses ahead of DSP Core request
  • DMALLOC is used to allocate cache lines before sequential writes

This evaluation found that automatic insertion of cache hint instructions into the existing code can provide significant performance benefits of 5-15% of effective frequency by removing memory stalls. Performance improvement for applications running from slow memory is greater due to the higher latency associated with this type of memory. The developed flow can be incorporated directly into assembly code, added by the compiler, or used as separate tool.

 
Rate this paper
WORSE | BETTER
1 2 3 4 5

submit a paper
Follow Tech Papers

Freescale Semiconductor
   

TECH PAPER
1. Advanced Verification of Low Power Designs

TECH PAPER
2. Nucleus: Medical Applications in Safe Hands

TECH PAPER
3. Opening Eyes on Fiber Weave and CAF

TECH PAPER
4. Pattern matching assisted modeling test pattern generation