






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Fall 2008 CS 4833:Embedded Systems 1
¾ High level complexity analysis: Big-O ¾ Low level instruction time: assembly language ¾ Metrics for analysis
¾ Analysis, simulation, and measurement
¾ Problems, common mistakes and hardware accelerators ¾ Power consumption and cache effects
Fall 2008 CS 4833: Embedded Systems 3
Overview for Performance
¾ Response time ¾ Time loading ¾ Memory loading
¾ Complexity, time, power, size/weight and cost ¾ Others: development time, maintenance effort and extensibility
¾ Best, Worst or Average cases
The Embedded System
¾ System hardware and software
¾ Computational and control elements ¾ Communication subsystem ¾ Memory
¾ Algorithms and data structures ¾ Control and scheduling
Fall 2008 CS 4833: Embedded Systems 7
Asymptotic Complexity: Big-O
¾ N: size of the problem ¾ Highest order of increase e.g., 37N 5 + 7N^2 + 455000 Æ O(N^5 )
Analyzing Codes
¾ Basic calculation and assignment, etc
¾ Number of iterations ¾ Steps in each iteration
¾ Maximum of all possibilities
¾ Call, argument passing, function execution, value return
Fall 2008 CS 4833: Embedded Systems 9
Example: Algorithm Analysis
Analyzing Data Structures
¾ Array ¾ Linked list
¾ Insert/delete at beginning/end/middle ¾ Access at the beginning/end/middle
Fall 2008 CS 4833: Embedded Systems 13
Performance Metrics
¾ Hardware vs. software ¾ Exact vs. bounded
¾ Response time: execution time vs. throughput ¾ Time load: percentage of CPU time for useful/app. Work ¾ Memory load: share of memory for application
Response Time
¾ Preemption vs. non-preemptive
Fall 2008 CS 4833: Embedded Systems 15
Performance Evaluation
¾ early design stage
¾ early/middle stage
¾ later stage after prototype is done
Performance Optimization
¾ What is being optimized? ¾ Why is it being optimized? ¾ What will be the effect on overall systems? ¾ Is the optimization appropriate for the operating context?
Fall 2008 CS 4833: Embedded Systems 19
Power Consumption Optimization
Example: Power Management
Fall 2008 CS 4833: Embedded Systems 21
Cache and Performance
¾ Comes from conditional branch and shared access ¾ Not feasible for real-time systems
¾ Cache partitioning
Summary
¾ High level complexity analysis: Big-O ¾ Low level instruction time: assembly language ¾ Metrics for analysis
¾ Analysis, simulation, and measurement
¾ Problems, common mistakes and hardware accelerators ¾ Power consumption and cache effects