
206
(c) Software Trace Function
Note: This function can be supported with SHC compiler V7.0 and later.
When a specific instruction is executed, the PC value at execution and the contents of one
general register are acquired by trace. Describe the Trace(x) function (x is a variable name) to
be compiled and linked beforehand. For details, refer to the SHC manual.
When the load module is loaded on the emulator and a valid software trace function is
executed, the PC value that has executed the Trace(x) function, the general register value for x,
and the source lines are displayed.
To activate the software trace function, select the [Software trace] check box in the [AUD
function] group box of the [Trace mode] page.
AUD Trace Display: Figure 6.13 shows an example of the AUD trace display.
Figure 6.13 [Trace] Window
Double-clicking the source line jumps the cursor to the corresponding section on the [Source]
window.
The TYPE, ADDR, and DATA columns have different meanings according to the selected AUD
trace types.
When the TYPE column displays ‘LOST’, it means that the trace information being output in the
realtime trace mode has been suspended. When that column displays ‘CPU-WAIT’, it means that
a wait has been generated in the CPU to output a trace in the non-realtime trace mode.
Kommentare zu diesen Handbüchern