Fujitsu softune f2 mc-16 Manuel D’Utilisation

Page de 354
50
CHAPTER 2  DEPENDENCE FUNCTIONS
2.1.10
Measuring Execution Cycle Count
This function measures the program execution cycle count.
Measurement Items
Measures program execution cycle count and step counts.
Execution Cycle Count
This is calculated based on the basic cycle count of each instruction described in the Programming Manual.
A compensation value (a, b), which is described in the list of an instruction in Programming Manual, is
calculated as 1.
The maximum measurable value varies, as shown below, whether the normal or the high-speed simulator
debugger is used.
Normal debugger:
Max. (2 to the power of 32 - 1) = 4,294,967,295 cycles
High-speed debugger:
Max. (2 to the power of 64 - 1) = 18,446,744,073,709,551,615 cycles
Execution Step Count
Measures program execution step counts.
For both the normal simulator debugger and the high-speed simulator debugger, the maximum measurable
count is "2 to the power of 32 - 1", in other words, up to 4,294,967,295 steps.
The measurement is performed whenever a program is executed, and the measurement result displays the
following two values:
Step counts spent on the previous program execution
Total step counts spent on the program execution 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".