Running at the Target

The instrumented program is downloaded to the target and run there in the same way as the original program.

Instrumentation has made the program larger. The increase in size comes from:
  1. The code that ctc has added to the source code during instrumentation.
  2. The Testwell CTC++ runtime layer for the target.
  3. The memory needed to record the execution counters.

If the target has limited memory, the increase in size can become a problem. In this case you have several options:

  • Use BITCOV toolchain (meant for very small targets),
  • Instrument with a lower instrumentation mode,
  • Instrument the program in portions.

Of course the program is also a bit slower because of the instrumentation. But according to our experience, the execution speed has not been a problem in practice.