TestWorks
TCAT C/C++, Ver. 3.2
INSTALLATION README

©Copyright 1999-2006 by Software Research, Inc.

Contents of the TCAT C/C++, Ver. 3.2 Installation README

The following information is available in this README file:

The fully working examples are provided in Examples subdirectory:

(1) Prerequisites

Before starting, you will need to have installed Microsoft Visual Studio 6.0 or higher.

(2) License

DEMO versions of TCAT C/C++ for Windows contains a temporary access license file located in TCAT C/C++'s Program directory. EVAL versions will require a license key to operate properly.

DEMO versions are restricted to writing at most 5 modules into the MDF file. To request a FULL evaluation license key, please contact Software Research by sending email to <licenses@soft.com>.

NOTE: Please read details attached with each emailed license key.

(3) Environment Settings

The default installation directory for TCAT C/C++ is C:\Program Files\Software Research\Coverage\TCAT-CPP

The path needs to be appended to your path in autoexec.bat and/or the path environment variable.

TCAT C/C++ also needs the COMSPEC variable to be set in order to spawn the compiler on the instrumented code. Please set up your environment's startup files to an appropriate value:

TCAT C/C++ may create temporary files of the form _sbxxxx.tmp in your temp directory. These can be removed after the current instrumentation is done.

TCAT C/C++ supports Microsoft Visual C++ 6.0.

Please use the Scribble sample provided in the ...\Examples\Uninstrumented Examples\Scribble - VC 6.0 directory. The files in these directories are exactly the same as those provided in the Visual C++ CD-ROM. So if you need to restore their contents, you could copy the files from CD-ROM: ...\SAMPLES\VC98\MFC\TUTORIAL\SCRIBBLE\STEP7

(4) Runtime Library

The Runtime module of the instrumentor writes the coverage data into a trace file. The library "runtmdll.lib" must be linked with your instrumented application.

The number of coverage data to buffer before writing into the trace file defaults to infinite, that is all data is buffered before they are flushed into the trace file. This can be modified from the TCAT Options configuration tool that you will install in your Visual Studio Environment.

The Runtime module of the instrumentor (which writes the trace file) is provided in three categories. The choice of which one to link with your application depends upon the application's target and how it is compiled. The small table below illustrates the combinations possible.

Application Targetslinks with
Multi-threaded libraryRuntmdll.lib
Multi-threaded DLLRuntmdll.dll

(5) Getting Started

An already instrumented example to demonstrate the viewing parts ahead can help you in getting a quicker headstart. This bypasses the compiler instrumentation section. The example is created using the scribble example from Visual C++ 6.0, and the directory is located at

$SR Examples\Instrumented Example\Scribble - VC 6.0

where $SR is your TCAT C/C++ installation directory, for example,

C:\Program Files\Software Research\Coverage\TCAT-CPP

All Scribble files are instrumented by using WinIC9. Calltree and Digraph are used to view the control structure associated with the source code. The trace file ("trace.trc") is created after running the instrumented code and the coverage report can be viewed by using Cover.

A step by step instruction is given below.

Preparing and Instrumenting Scribble

There are two methods to instrument Scribble by either using options from the TCAT/C-C++ Integrated with Microsoft Visual C++ 6.0 window. Or applying your own workspace within WinIC9 along with IC9 command lines.

Using the TCAT C/C++ Integrated with Microsoft Visual C++ 6.0

1) Integrating TCAT C/C++ into Microsoft Visual C++...

2) Opening the Scribble Example...

3) Creating a Coverage Project Configuration for Scribble...

4) Configuring TCAT C/C++...

5) Instrumenting the Scribble Example...

6) Executing the Instrumented Scribble

Viewing Coverage Reports

Viewing the Source Code Associated With Coverage Reports

Viewing Directed Graphs

Viewing a Calltree

Viewing the Directed Graph Associated With a Calltree Node

Viewing the Source Code Associated With A Calltree

(6) Solutions to potential problems.

For the cl.exe problem

(7) Technical Support

If you are having any problems either setting up or working with this version of TCAT C/C++, Ver. 3.2, please report them to Software Research and every effort will be made to get them resolved and included in the next release.

(8) Technical Documentation

A quick start document in PDF or postscript format is also available in the Help directory.

To view the PDF file, you need the Acrobat Reader which can be downloaded from:

http://www.adobe.com/prodindex/acrobat/readstep.html

If you do not have a postscript printer, you may get a postscript viewer called GhostScript (and GhostView) which may print to your printer, but at the very least would display the file on the screen. To obtain this, connect to:

http://www.cs.wisc.edu/~ghost/index.html

The complete manual is provided with the CD-ROM version in PDF format. You can view and print the document without a postscript printer.

Feedback

We would also appreciate feedback on how we can improve the usability, the project and workflow.
We welcome any other comments or insights from you.
Please contact Software Research by:

Incident Form
Phone: +1 (415) 861-2800 or +1 (800) 942-SOFT
FAX:  +1 (415) 861-9801

Updated: December, 2006