Compiling the TDP Library
Test RealTime - User Guide
The Instrumentation Launcher replaces your actual compiler command in your
makefiles. This launcher transparently takes care of source code preprocessing,
instrumentation and compiling.
See the command line information for the Instrumentation Launcher in the Reference
Manual.
Instrumentation and Compilation
Alternatively, you can use the actual Instrumentor command line tools to instrument
the source files.
See the command line information for each Instrumentor in the Reference Manual.
If you are compiling on a different target, you must copy the TDP /lib directory over
to that target.
Add to the include search path the /lib sub-directory that you have copied onto the
target. In C and C++, use the -I compiler option. In Java, add the directory to the
CLASSPATH.
After this, simply compile the instrumented source file with your compiler.
Compiling the TDP Library
Before you can link your test harness or your instrumented application, you must
compile the Target Deployment Port library. This section describes how to do this.
Requirements
To compile the Target Deployment Port library, make sure that:
·
A working C or C++ Test Script Compiler is installed on your system
·
You have prepared a valid Products file
Compilation
Depending on the language of your source file:
·
For C: compile the TP.c file
·
For C++: compile the TP.cpp file
·
For Ada: compile the contents of the /lib directory
·
For Java: set the CLASSPATH to the TDP /lib directory
Do not forget to add to the
include
search path the directory where the products.h or
Products.java file is located (usually with option -I or /I, depending on the compiler).
Configuration Settings
328