Everything
2.1 Overview

The analysis information acquired by the analysis tool is displayed on the following panels.

Table 2.1

Panels Displaying Analysis Information

Panel

Description

Function List panel

Displays the function information.

Variable List panel

Displays the variable information.

Analysis Chart panel

Displays charts of the function information and the variable information.

[Variable Value Changing Chart] tab

Displays changes in values of variables or data collected for Smart Analog [E1/E2/E2 Lite/E20/COM Port[RL78]]Note 1 (line chart).

[Execution Time(Percentage) Chart] tab

Displays function execution time ratios (pie chart).

Call Graph panel

Displays calling relationships between functions (call graph).

Class/Member panel

Displays the class information [CC-RX]Note 2, function information and variable information in a tree structure.

Variable Value Changing Chart (zoomed in) panel

Zooms in on the chart displayed in the [Variable Value Changing Chart] tab.

Notes 1.

[E1/E2/E2 Lite/E20/COM Port[RL78]]
Data collection for Smart Analog is supported only when the selected microcontroller incorporates a Smart Analog IC.

Notes 2.

[CC-RX]
The class information is provided only when C++ source files are subject to analysis.

 

In the each panel, the following types of function/variable are subject to analysis.

Table 2.2

Types of Functions/Variables That Are Subject to Analysis

Types

Panel

Function List

Variable List

Analysis Chart

Variable Value Changing Chart (zoomed in)

Call Graph

Class/Member

Global function

 

-

-

 

 

Static function

 

-

-

 

 

Member function [CC-RX]Note 1

 

-

-

 

 

Global variable

-

 

 

 

 

Static variable inside a file

-

 

 

 

 

Static variable inside a function

-

 

 

 

-

Local variable

-

-

-

-

-

IOR/SFRNote 2

-

-

 

-

-

Class variable [CC-RX]Note 1

-

 

 

 

 

Instance variable [CC-RX]Note 1

-

-

 

-

 

Notes 1.

[CC-RX]
This is a function/variable that exists only in C++ source files.

Notes 2.

[RH850][RX] : IOR
[RL78] : SFR

 

By validating this analysis information, it is possible to search for unused functions and variables, and processing that is creating bottlenecks, allocate memory effectively to reduce code size, and the like.

The basic operation sequence of the analysis tool is as follows:

(1)

Start CS+

Launch CS+ from the [Start] menu of Windows.

Remark

For details on how to start CS+, see "CS+ Project Operation".

(2)

Set a project

Create a new project, or load an existing one.

Remark

For details on how to set a project, see "CS+ Project Operation".

(3)

Create a load module

Create a load module by running a build after setting of the active project and the build tool to be used.

Caution

Run a build after setting the [Enable static analysis information] property in the [General] category on the [Settings] tab of the Property panel to [Yes], in order to generate the cross reference information required for the analysis tool without depending on the configuration of the build-tool being used (see "(1)Static analysis information").

Remarks 1.

For details on how to create a load module, see "CS+ Project Operation" of the compiler to use.

Remarks 2.

If the build completes without compiler or assembler errors, then at this point the Static analysis information can be displayed in the Function List panel/Variable List panel/Call Graph panel/Class/Member panel.

(4)

Execute downloading

Connect CS+ to the debug tool after configuring the operational environment of the debug tool, and then download the load module created in steps (3) to the debug tool.

Caution

Connect to the debug tool after setting the [Enable dynamic analysis information] property in the [General] category on the [Settings] tab of the Property panel to [Yes], in order to acquire the dynamic information necessary for the analysis tool without depending on the configuration of the debug tool being used (see "(2)Dynamic analysis information").

Remark

For details on how to execute download, see "CS+ Debug Tool" of the microcontroller used.

(5)

Execute programs

Execute the program on the debug tool.

Remark

For details on how to execute programs, see "CS+ Debug Tool" of the microcontroller used.

(6)

Specify the files to be analyzed

If necessary, specify the files to be analyzed by the analysis tool (see "1.1.1What is analyzed").

Display the Function List panel in order to validate the acquired function information.

The Function List panel can be operated as follows, in accordance with the purpose.

Note that if the program is modified during debugging, the operation is repeated via (3), above.

Change the display method (e.g. set which columns to display and the sorting order) on the panels.

Jump to the location where the function on the panel has been defined.

Set a breakpoint to the function on the panel.

Find and display a list of locations referencing the function on the panel.

Remark

It is also possible to display the function information defined in other than the active project.
For detailed instructions on displaying function information, see "2.12Import or Export Information File".

Display the Variable List panel in order to validate the acquired variable information.

The Variable List panel can be operated as follows, in accordance with the purpose.

Note that if the program is modified during debugging, the operation is repeated via (3), above.

Change the display method (e.g. set which columns to display and the sorting order) on the panels.

Jump to the location where the function on the panel has been defined.

Set a break event with access condition to the variable on the panel.

Register variables to the Watch panel (Watch1) as watch-expressions.

Find and display a list of locations referencing the variable on the panel.

Remark

It is also possible to display the function information defined in other than the active project.
For detailed instructions on displaying function information, see "2.12Import or Export Information File".

Display the Call Graph panel in order to validate the relationship between functions.

The Call Graph panel can be operated as follows, in accordance with the purpose.

Jump to the location where the function/variable on the call graph has been defined.

Search for an arbitrary function/variable existing in the call graph.

Display the Class/Member panel in order to validate the class information [CC-RX], function information and variable information.

The Class/Member panel can be operated as follows, in accordance with the purpose.

Jump to the location where the class/function/variable on the tree has been defined.

Jump to the location where the class/function/variable on the tree has been declared.

Remark

[CC-RX]
The class information is provided only when C++ source files are subject to analysis.

Display acquired function information/variable information in a chart.

Note that if the program is modified during debugging, the operation is repeated via (3), above.

Display the relationship between values of variable/register/address or of data collected for Smart AnalogNote and time in a line chart.

Note

[E1/E2/E2 Lite/E20/COM Port[RL78]]
This feature is supported only when the selected microcontroller incorporates a Smart Analog IC.

Display a pie chart of the function execution time ratios.

Save the acquired analysis information to a file.

(13)

Save the project file

Save the setting information of the project to the project file.

Remark

For details on how to save the project file, see "CS+ Project Operation".