Compilation and Worst-Case Execution-Time Analysis
Peter Puschner
slides credits: P. Puschner, R. Kirner, B. Huber
VU 2.0 182.101 SS 2015
Compilation and Worst-Case Execution-Time Analysis Peter Puschner - - PowerPoint PPT Presentation
Compilation and Worst-Case Execution-Time Analysis Peter Puschner slides credits: P. Puschner, R. Kirner, B. Huber VU 2.0 182.101 SS 2015 Why Compiler-Support for WCET
slides credits: P. Puschner, R. Kirner, B. Huber
VU 2.0 182.101 SS 2015
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
…worst case path
superblock: …block with single entry point
22
input data input data execution time execution time real-time code optimization
23
input data input data execution time execution time non real-time code optimization
24
25
26
loop unrolling (unrolling factor 3)
additional knowledge assumed: N≤10 (flow fact given as code annotation)
27
scope { for (i=0; i<(N-2); i=i+3) maximum 3 iterations { marker m1; f(i); f(i+1); f(i+2); } for (;i<N; i++) maximum 2 iterations { marker m2; f(i); } restriction 3*m1 + m2 <= 10; } loop unrolling (unrolling factor 3)
additional knowledge assumed: N≤10 (flow fact given as code annotation) linear flow constraint flow variable flow variable loop bound loop bound
28
29
R
30
L
31
32
33
34
35
36
37
38
39
40