Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Studio 12.3 Code Analyzer User's Guide Oracle Solaris Studio 12.3 Information Library |
Data Analyzed by The Code Analyzer
Dynamic Memory Access Checking
Requirements for Using the Code Analyzer
2. Collecting Data And Starting the Code Analyzer
The following is an example of compiling a program to collect static code data, recompiling it with debug information, instrumenting it with Discover and running it to collect dynamic memory access data, instrumenting it with Uncover to collect code coverage data, and starting the Code Analyzer to display the collected data.
% cc -xanalyze=code *.c % cc -g *.c % cp a.out a.out.save % discover -a a.out % a.out % cp a.out.save a.out % uncover a.out % a.out % uncover -a a.out.uc % code-analyzer a.out