Code Coverage Report - Motorola DSP56600 Manual

Application optimization for digital signal processors
Table of Contents

Advertisement

C.3.4

Code Coverage Report

The code coverage report juxtaposes the assembly source code with
dynamic profile information pertaining to the code generated for
that source. The report provides, for each source line that
corresponds to an assembly instruction, the number of times control
has passed through that instruction and the total number of
machine cycles spent in executing the instruction. For conditional
instruction, the number of times the condition has evaluated to
TRUE is also provided. For DO-type instructions (DO, DOR, DO
FOREVER) the cycle count provided is the total number of cycles
spent executing the corresponding loop, not just the DO instruction
itself. For each source line containing a macro invocation which
resulted in expansion into more than one instruction, the
instructions expanded by the macro invocation are displayed in
disassembly form. Example C-6 depicts part of the Code Coverage
Report, in ASCII format.
#Cycles spent in
this loop
[0164]
00010D
[0165]
00010E
[0166]
00010F
[0167]
000110
[0168]
000111
[0169]
000113
[0170]
000114
[0171]
000115
[0172]
000116
[0173]
000117
[0174]
000118
000119
00011A
00011B
Line number Instr. address
# times instruction was executed /
# times condition evaluated to true
MOTOROLA
Optimizing DSP56300/DSP56600 Applications
Example C-6 Code Coverage Report
#Cycles/stalls spent on this instruction
100
100
1700
500
100
1700/100
1600
100
100
300/100
100
100
100
100
100
100
100
483
100/17
166/83
83
100
100
100
100
clr
rep
div
move
and
move
move
cmp
bne
neg
MV
1
//
nop
1
//
move #$0,x0
1
//
nop
1
//
inc a
Disassembly of inlined macro
Using the Profiler
B
A,y0
#16
x0,A
a0,B
#>SW_MAX,B
b1,A
x1,B
y0,B
<if2falseaFlatRcDp
A
#$0,x0
Source code
C-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56300

Table of Contents