JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.3 Code Analyzer User's Guide     Oracle Solaris Studio 12.3 Information Library
search filter icon
search icon

Document Information


1.  Introduction

Data Analyzed by The Code Analyzer

Static Code Checking

Dynamic Memory Access Checking

Code Coverage Checking

Requirements for Using the Code Analyzer

The Code Analyzer GUI

Quick Start

2.  Collecting Data And Starting the Code Analyzer

A.  Errors Analyzed by the Code Analyzer


Quick Start

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
% discover -a a.out
% a.out
% cp a.out
% uncover a.out
% a.out
% uncover -a a.out.uc
% code-analyzer a.out