Everything
2.9 Display the Memory Information at Linking

This section describes how to display the contents of linkage list files (memory map files), which are output by the linkers of the CC-RL, CC-RX, or CC-RH in the GUI.

(1)

Open a project with CS+ for CC. If there is a subproject, specify the main application project as the active project for use in displaying memory information.

(2)

Select [View] - [Memory Mapping Profiler].

(3)

Click on the [Profile] button in the Memory Mapping Profiler panel.
If any of the following Message dialog boxes (Q0294007 [RL78], Q0291003 [RX], and Q0293008 [RH850]) is displayed, select [Yes]. This only affects the contents of the list file. However, it does not change the built binary file (*.abs or hex file).

Figure 2.94

Message Dialog Box

Clicking on the [Profile] button changes the button name to [Profile (Collect)].

Figure 2.95

[Memory Mapping Profiler] Button

(4)

Rebuild the project. With normal completion of rebuilding, the contents of the list file of the linker will be shown in the grid control at the bottom of the panel. The following describes each part of the panel.

(5)

If you want to check the contents shown in the grid control later, you can save them with a selected name by clicking on the [Save] button .

Figure 2.96

Each Part of the Panel

 

For details on the displayed contents and sorting or filtering in each tabbed page of the grid control, refer to the description of the Memory Mapping Profiler panel .

 

Application example 1:

(a)

Shift the focus of the display to [Details of the selected memory mapping].

(b)

Select [File] - [Save Detailed Memory Mapping Data] or [Save Detailed Memory Mapping Data As...].

(c)

In the Save As dialog box, select "Excel workbook" for [Save as type] and then save the file. The Excel file can freely be used for calculation. For example, assume that the Sub1.lib user library contains userlib1.c and userlib2.c. When the sizes of the userlib1 and userlib2 rows in the File Name column of the [Object File] sheet of the saved Excel book are added, you can find the size of each library.

 

Application example 2)

-

When building proceeds with saving of a profile and then changing of the build options, you can compare the increases or decreases of memory usage among profiles. This feature is helpful in finding build options which are optimal in terms of memory usage. For details, refer to Memory Mapping Profiler panel.