Builds from command-line

To build an instrumented version with iarbuild.exe from command-line, ctclaunch is used.

The call of ctclaunch is prepended to the call of iarbuild, and the option -iar is necessary:
ctclaunch -iar [ctc options] iarbuild myproject.ewp ...

If the IDE of IAR Embedded Workbench with the configuration dialogue of Testwell CTC++ was ever used for the same project, the settings made for instrumentation were saved and are implicitly used in this call. In that case, no ctc-options are needed.

If you want to set them independently from the IDE, delete the files
\settings\myproject.ctcopts.rsp
\settings\myproject.ctcopts.exclude

from the project directory.

Note: To use ctclaunch, the compiler and linker command must be configured once in ctclaunch.ini in the Testwell CTC++ home directory.