Figure 2 Steps in Using Cadvise

To use cadvise, you perform the following steps:

1.Build the application with the set of compiler or linker options. Ensure that the application builds successfully.

2.Run cadvise with desired options and create the PDB.

3.Use the reporting utility for generated reports from the PDB in various formats.

4.Make suggested changes based on generated reports. The suggested changes are for defect prevention, memory leaks, secutity issues, coding guideline violation, and so on.

5.Re-run cadvise on modified sources and generate new reports. Continue making source changes as long as you receive meaningful data.

2.3 Invoking Cadvise

To invoke cadvise, enter the following command at the HP-UX prompt:

/opt/cadvise/bin/cadvise

2.3 Invoking Cadvise

11