Starting ctc

The use of the Testwell CTC++ preprocessor utility ctc is connected to the command for compiling/linking.

ctc can be started in one of the following two ways:
ctc [-h] [-H [search-term]]

Option -h gives a short help of the available options. Option -H opens the tool page of ctc in Testwell CTC++ Help. When followed by a search term, the search function of Testwell CTC++ Help is opened with this term instead.

To instrument code, ctc is used as follows:
ctc [ctc-options] command command-options-and-files
where [ctc-options] are:
[-i {f|d|m|te|ti}…] [-n symbol-file]
[-v] [-V] [-k] [@optionsfile] [-dump-config]…
[-c conf-file[;conf-file]…]… 
[-C PARAMETER{=|+|-}value] …
[-2comp] [-no-comp] [-no-templates] [-no-warnings]

Options must be separated from their arguments with a space.

Examples

ctc cl -c myfile1.cpp myfile2.cpp
ctc link /out:myprog.exe myfile1.obj myfile2.obj

ctc –v –n XMON –C "NO_EXCLUDE+*\xdir\*.h" cl /Fexprog.exe x*.cpp

ctc –i m –n D:\myproj\tests\MON.sym cl /Feyprog.exe *.c
ctc -i dti -C TIMER=mytimerfunc cl -c mycriticalfile.c