To instrument and run your program:
Compile
and link the program under Purify using the -g option to collect debug
data:
% purify cc -g <myprog>.o
or, if you compile and link at the same time:
% purify cc -g <myprog>.c
Note that you can modify your existing makefiles to compile and link
your program under Purify. For more information click
Run the
instrumented program.
% a.out
This results in normal program output, and opens the Purify Viewer (unless Purify is
unable to connect to an X
Window display). Note that the program does not stop processing
when Purify finds an error.
Note:
To instrument
a program on IRIX, you have the option of adding purify
in front of the compile/link command line as on other platforms, or of
Purify'ing the executable:
% purify a.out
To run the program, type:
% a.out.pure
The next step in using Purify is to analyze the Purify error messages.
What else can you do?
Use Rational PureCoverage with Purify to make sure you're looking for errors in all your code.
Customize your error checking using Purify's advanced features, API functions, and options.
Save Purify output to file.