Texas Instruments SPRAA56 Computer Hardware User Manual


 
SPRAA56
28 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application
A.3 Memory Footprint
The total additional code size added to the application for the debugging features was 29 KB of
external memory. This was calculated from the size of the .out file with benchmarking added
(518 KB) and without benchmarking (491 KB).
All the footprint numbers in this appendix were obtained under the following conditions (expect
where noted):
Platform: EVMDM624
Debug flags:
-g –ml3 -d"UTL_DBGLEVEL=70" -d"_DEBUG" -d"RTA_INCLUDED" -d"_NTSC" -d"CHIP_DM642" -ml3 -mv6400
Optimization: -o2
DSP/BIOS: version 4.90.27
RDTX: enabled
LOG buffers: 2 * 4096(buffer size) + 1 * 256(buffer size) = 8448(8-bit bytes)
The real-time analysis footprint numbers in Table 4 were obtained using the setup described in
Section 5.1, Requirements. All sizes are in 8-bit bytes.
Table 4. Memory Footprint Details
All RTA Features
Enabled (as
shipped)
Remove
–D"RTA_INCLUDED"
Build Option
Remove UTL Calls
(Set
UTL_DEBUGLEVEL=0)
Remove Both
–D"RTA_INCLUDED"
Build Option and
UTL Calls
Code Size
11,406,788 11,405,076 11,402,856 11,401,272
Data Size
3347 3347 2643 2643
Bss + Stack
5392 5392 5392 5392
Total
11,415,527 11,413,815 11,410,891 11,409,307
Code Reduction
Relative to Case # 1
----
1712
(0.015% reduction)
3932
(0.034% reduction)
5516
(0.048% reduction)
Data Reduction
Relative to Case # 1
---- 0 (0%) 704 (21% reduction) 704 (21% reduction)
Each STS object adds a one-time code size of 128 bytes plus an additional 16 bytes of data
space. The STS objects are not removed in any cases in the table above. In this application, the
total footprint impact due to STS objects is 496 bytes. (All bytes here are 8-bit bytes.)
Table 4 shows that the impact on space, especially code space, by real-time analysis
instrumentation is negligible relative to the application size.