Fujitsu softune f2 mc-16 Manuel D’Utilisation

Page de 354
232
CHAPTER 2  DEPENDENCE FUNCTIONS
2.4.6
Measuring Execution Cycle Count
This function measures the program execution cycle count.
Measurement Items
Measures cycle count between the start and stop of program execution.
In this emulator debugger, the measurement is performed by the cycle counter. The following shows the
features of the cycle counter.
Significant bits : 56 bits
Maximum measurement cycle count : 72,057,594,037,927,935 cycles
The measurement is performed whenever a program is executed, and the measurement result displays the
following two values:
Number of cycles spent on the previous program execution
Total number of cycles executed since the previous clearing
Displaying Measurement Results
Either of the following methods can be used to display the measurement results.
Display by dialog
The results appear in the time measurement dialog, which can be displayed by selecting [Debug] - [Time
Measurement] menu.
For details, refer to Section "4.6.8 Time Measurement" in "SOFTUNE Workbench Operation Manual".
Display by command
Enter the SHOW TIMER command in the command window.
For details, refer to Section "4.27 SHOW TIMER" in "SOFTUNE Workbench Command Reference Manual".
Clearing Measurement Results
Either of the following methods can be used to clear the measurement results.
Clearing by dialog
Click the [Clear] button in the time measurement dialog, which can be displayed by selecting [Debug] -
[Time Measurement] menu.
For details, refer to Section "4.6.8 Time Measurement" in "SOFTUNE Workbench Operation Manual".
Clearing by command
Enter the CLEAR TIMER command in the command window.
For details, refer to Section "4.28 CLEAR TIMER" in "SOFTUNE Workbench Command Reference Manual".
Note:
The measured number of execution cycles is added about ten extra cycles per execution. If the
execution cycle is measured, execute many instructions continuously in order to minimize the effect of
error.