The analysis information acquired by the analysis tool is displayed on the following panels.
Displays charts of the function information and the variable information. |
||
Displays changes in values of variables or data collected for Smart Analog [E1/E20[RL78]]Note 1 (line chart). |
||
Displays calling relationships between functions (call graph). |
||
Displays the class information [CC-RX]Note 2, function information and variable information in a tree structure. |
||
Zooms in on the chart displayed in the [Variable Value Changing Chart] tab. |
[E1/E20[RL78]] |
[CC-RX] |
In the each panel, the following types of function/variable are subject to analysis.
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:
Launch CS+ from the [Start] menu of Windows.
Create a new project, or load an existing one.
Create a load module by running a build after setting of the active project and the build tool to be used.
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"). |
For details on how to create a load module, see "CS+ Project Operation" of the compiler to use. |
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. |
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.
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"). |
Execute the program on the debug tool.
If necessary, specify the files to be analyzed by the analysis tool (see "1.1.1 What 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.
It is also possible to display the function information defined in other than the active project. |
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.
It is also possible to display the function information defined in other than the active project. |
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.
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.
[E1/E20[RL78]] |
Display a pie chart of the function execution time ratios.
Save the acquired analysis information to a file.
Save the setting information of the project to the project file.