Instrumenting and running your program

To instrument and run your program:

  1. 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
     

  2. 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.

The next step in using Purify is to analyze the Purify error messages.
 

Note:

What else can you do?