tuning the wcet of embedded why reduce the wcet
play

Tuning the WCET of Embedded Why Reduce the WCET? Applications more - PowerPoint PPT Presentation

Tuning the WCET of Embedded Why Reduce the WCET? Applications more likely to meet timing Wankang Zhao 1 , Prasad Kulkarni 1 , David Whalley 1 ,Christopher Healy 2 , constraints Frank Mueller 3 , Gang-Ryung Uh 4 can lower clock rate to


  1. Tuning the WCET of Embedded Why Reduce the WCET? Applications � more likely to meet timing Wankang Zhao 1 , Prasad Kulkarni 1 , David Whalley 1 ,Christopher Healy 2 , constraints Frank Mueller 3 , Gang-Ryung Uh 4 � can lower clock rate to reduce 1. Florida State University power consumption 2. Furman University 3. North Carolina State University 4. Boise State University Outline of Rest of Presentation Our Approach � Related Work � interactive compilation system � Research Framework � timing analyzer invoked on - target architecture, compiler, timing analyzer demand � Functionality - include quick demo � automatically searches for an � Experiments optimization phase sequence � Future Work that best reduces the WCET � Conclusions

  2. Related Work Framework for This Research � methods to reduce WCET in critical sections - Marlowe, et al, System Integration '92 - Hong, et al, PLDI '93 � reduce WCET on a dual instruction set processor - Lee, et al, WCET '03 � genetic algorithms to search for effective optimization sequences to improve speed, space, or a combination of both - Cooper, et al, LCTES '99 - Kulkarni, et al, LCTES '03 Target Architecture: Our Timing Analyzer StarCore SC100 Processor � Calculates WCET for each path, loop, and � A digital signal processor for embedded function in the program. systems. � Features � No caches and no operating system. � WCET pipeline analysis - RTSS '95 � A simple five stage pipeline machine with � WCET cache analysis - RTSS '94, RTAS '97 transfer-of-control and target misalignment � automatically calculates the number of loop penalties. iterations - RTAS '98 � The size of instructions varies from 1 word to � detects infeasible paths due to branch 5 words. constraints - RTAS '99

  3. Estimating WCET with Transfer of VPO Interactive System for Tuning Control Penalties Applications (VISTA) � What is the WC path? � Has been previously used to tune applications for ACET and code size. � Now interacts with our timing analyzer to determine WCET improvement. VISTA: Functionality Main Window of VISTA � Provides a graphical display of the low-level program representation. � Directs order and scope in which the optimization phases are applied. � Shows feedback on the WCET and code size improvement. � Reverses previously applied transformations. � Uses a genetic algorithm to search for the best order of optimization phases.

  4. Main Window of VISTA (again) Select Optimization Phases Select the Candidate Phases Selecting Search Options

  5. Window Showing the Search GA Results Status Experiments Candidate Optimization Phases branch chaining loop transformations � Evaluated effectiveness of VISTA's GA remove useless blocks merge basic blocks search for improving WCET. remove unreachable evaluation order � Each phase is considered a gene. code determination common subexpression dead assignment � Each sequence of phases is considered a elimination elimination chromosome. register allocation strength reduction � Much faster to interact with a timing block reordering reverse jumps analyzer to obtain WCET than a minimize loop jumps instruction selection simulator to obtain ACET. remove useless jumps

  6. DSPstone Benchmarks Genetic Algorithm (GA) Parameters � Sequence length (chromosome) is 1.25 times the number of phases that were successfully applied by the batch compiler. � Population size: 20 sequences � Generations: 200 � 4 sequences are replaced by crossover operations. � Mutation rate: 10% lower half, 5% upper half � 3 different fitness criteria: � 100% WCET,100% code size, 50% WCET and 50% code size Other Benchmarks WCET vs. Observed Cycles

  7. Tuning for WCET Tuning for Code Size Result of the Three Fitness Criteria 50% WCET and 50% Code Size

  8. Conclusions Future Work � Developed the first system where a � Develop compiler optimizations that use compiler can invoke a timing analyzer on worst-case path information to improve demand. WCET. � Showed that WCET can be used as a � Example: fitness value to a genetic algorithm to find � change order of basic blocks to an effective optimization sequence. reduce transfer of control penalties for � WCET and code size were simultaneously worst-case paths improved by 6% and 5%, respectively.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend