Cache Line Alignment Check
The tool checks the 128-byte alignment of structure variables in the C/C++ source code to improve memory access performance.
Prerequisites
You have logged in to the Kunpeng DevKit.
- /opt/DevKit is the default installation directory of the tool. The following uses this directory as an example. Replace it with the actual directory.
- To perform a 64-bit running mode check on the WebUI, you need to manually upload files or compressed packages. In the IDE, you can simply scan local projects to run the check.
Procedure
- On the left pane of the page, choose Affinity Analyzer > Cache Line Alignment Check, and click
to create a task. See Figure 1. - You can select the source code to be checked in either of the following ways:
- Enter the absolute path of the source file.
- Click Select Folder on the right and select the folder for storing the source file.
- Click Check. After the check is complete, the check report page is displayed. See Figure 2.
Click the View Suggested Source Code tab to switch to the alignment check result page. See Figure 3.
- The tool supports concurrent running of multiple cache line alignment check tasks.
- To cancel a task, click Close during the task running process.
- If the source code does not need to be modified, a dialog box is displayed indicating that the operation is successful. The check report page is not displayed.
- If you use shortcut keys to modify the source code, pay attention to shortcut key conflicts caused by the input method or IDE environment.
Parent topic: Affinity Analyzer


