Coverage Measurement Procedures - Fujitsu SOFTUNE F2 MC-16 User Manual

Software for developing programs for the f2 mc-16 family of microprocessors / microcontrollers
Hide thumbs Also See for SOFTUNE F2 MC-16:
Table of Contents

Advertisement

2.3.8.1

Coverage Measurement Procedures

The procedure for coverage measurement is as follows:
• Set range for coverage measurement :
• Measure coverage
• Display measurement result
■ Setting Range for Coverage Measurement
Use the SET COVERAGE command to set the measurement range. The measurement range can be set only
within the area defined as the debug area. Up to 32 ranges can be specified.
By specifying /AUTOMATIC for the command qualifier, the code area for the loaded module is set
automatically. However, the library code area is not set when the C compiler library is linked.
[Example]
>SET COVERAGE FF0000 .. FFFFFF
■ Measuring Coverage
When preparing for coverage measurement, execute the program.
Measurement starts when the program is executed by using the GO, STEP, or CALL command.
■ Displaying Coverage Measurement Result
To display the measurement result, use the SHOW COVERAGE command. The following can be displayed:
• Display coverage rate of total measurement area
• Displaying coverage rate of load module
• Summary of 16 addresses as one block
• Details indicating access status of each address
• Displaying coverage measurement result per source line
• Displaying coverage measurement result per machine instruction
● Display Coverage Rate of Total Measurement Area (Specify /TOTAL for command qualifier)
>SHOW COVERAGE/TOTAL
total coverage : 82.3%
● Displaying coverage rate of load module (Specify /MODULE for the command qualifier)
>SHOW COVERAGE/MODULE
sample.abs . . . . . . . . . . . . . . . . . . . . . . . . (84.03%)
+ - startup.asm . . . . . . . . . . . . . . . . . . . . (90.43%)
+ - sample.c . . . . . . . . . . . . . . . . . . . . . . . (95.17%)
+ - samp.c . . . . . . . . . . . . . . . . . . . . . . . (100.00%)
Displays the load modules and the coverage rate of each module.
CHAPTER 2 DEPENDENCE FUNCTIONS
SET COVERAGE
:
GO, STEP, CALL
:
SHOW COVERAGE
189

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Softune workbench

Table of Contents