Skip to main content

IAR Embedded Workbench for RL78 5.20

‑‑code_coverage_file

In this section:
Syntax
‑‑code_coverage_file=filename

Note that this option must be placed before the ‑‑backend option on the command line.

Parameters
filename

The name of the destination file for the code coverage information.

For use with

cspybat

Description

Use this option to enable the generation of a text-based report file for code coverage information. The code coverage information will be generated after the execution has completed and you can find it in the specified file. Because most embedded applications do not terminate, you might have to use this option in combination with ‑‑timeout or ‑‑cycles.

Note that this option requires that the C-SPY driver you are using supports code coverage. If you try to use this option with a C-SPY driver that does not support code coverage, an error message will be directed to stderr.

See also

Code coverage, ‑‑cycles, ‑‑timeout.

Caution

To set this option, choose View>Code Coverage, right-click and choose Save As when the C-SPY debugger is running.