Rate This Document
Findability
Accuracy
Completeness
Readability

Features

The Kunpeng native development solution includes the DevKit Porting Advisor, DevKit Affinity Analyzer, and Code Inspector in the gated check-in process. These features can intercept code that does not adapt to Kunpeng servers, locate code specification problems, and provide Kunpeng affinity code tuning suggestions. As a result, problems can be found and intercepted early to improve the development efficiency.

The Code Inspector checks the Java code specification.

The Porting Advisor provides source code porting and software porting assessment.

Table 1 Porting Advisor

Function

Description

Source code porting

Analyzes the portability of software written in C/C++/ASM/Fortran/Go or an interpreted language.

Software porting assessment

Analyzes the SO library files in the software installation path in the x86 environment and checks whether these files are compatible with the Kunpeng platform.

The Affinity Analyzer includes 64-bit running mode check, byte alignment check, BC file generation, memory consistency check, vectorization check, and build affinity check.

Table 2 Affinity Analyzer

Function

Description

64-bit running mode check

Identifies the 32-bit applications to be ported to the 64-bit platform and provides modification suggestions. It supports GCC 4.8.5 to GCC 10.3.0.

Byte alignment check

Checks the byte alignment of structure variables in the source code.

BC file generation

Generates a BC file for memory consistency check and vectorization check.

Memory consistency check

Checks for any memory consistency issue when the source code is ported to the Kunpeng platform and provides suggestions on inserting memory barriers.

Vectorization check

Checks vectorizable code fragments and provides modification suggestions.

Build affinity check

Analyzes the content in Makefile and CMakeLists.txt that can be replaced with content in the Kunpeng library, and provides replacement suggestions and function repair.