Revision 1.0
code which decides which attributes are necessary, we always compute
them all and only output the ones we are interested in.
This approach also saves precious IMEM space.
Profiling RSP Code
The RSP simulator can help profile your code, it can show pipeline stalls,
load delays, and DMA wait states. The RSP clock (CLK) of the simulator is
always available as a register.
Although it is accurate within a few percent, the RSP simulator is
Note:
not cycle accurate with the actual hardware. The differences are mainly
in VU loads and moves.
It is also useful to use the RDP Command Counter to profile code on the
actual hardware. This value can be sampled, saved to DMEM or DMA'd to
DRAM for later analysis. A sample code fragment to read and store the RDP
Command Counter is shown in Figure 6-1, "Real-time Clock Watching on
the RSP," on page 134.
Performance Tips
133