Sample 2: Byte Alignment Check
This sample demonstrates how to use the byte alignment function of the Kunpeng DevKit Affinity Analyzer to align the bytes of the source code.
- Download the sample code from GitHub or Gitee to obtain the software source package.
The downloaded source package is devkitdemo-main.zip. The ./devkitdemo-main/Porting_advisor/testdemo/byte_check/ file extracted from the package is the code to be scanned for byte alignment check.
- Log in to the Kunpeng DevKit. In the navigation pane on the left, choose Affinity Analysis > Byte Alignment Check. The page for creating a byte alignment check task is displayed.
Click Select Folder to upload the byte_check folder. See Figure 1.
- Click Check. After the analysis is complete, click View Suggested Source Code on the right of the source file to view the details. See Figure 2.
Parent topic: Affinity Analyzer

