Tool Description and Risk Analysis

The BiSheng Compiler contains the following binary tools.

Table 1 BiSheng Compiler description

Tool Name

Relative Path

Description

Risk Analysis

Reservation Consideration

bisheng

ccec_compiler/bin/bisheng

BiSheng Compiler.

Compiles the operator source code to generate a binary file.

This low-risk tool can only be used to build the source code for generating an executable binary file and no runtime information will be returned.

Reserved as a basic binary toolset for the compiler.

llvm-objdump

ccec_compiler/bin/llvm-objdump

Debugger, for printing the operator function name and offset address information to facilitate fault locating.

Automatically used when AI Core Error Analyzer is used to parse AI Core errors, which can locate the function errors during operator development. You are advised not to use it independently.

Only the symbol table and offset, instead of the assembly information, are printed when you locate an operator function error by using this low-risk tool and no runtime information will be returned.

lld

ccec_compiler/bin/lld

Single-architecture operator linker.

Automatically used to link operators to form a complete executable program when building an operator. You are advised not to use it independently.

The attackers can only modify the link sequence of library files that they have permissions. The sequence is also vulnerable to modification by using other OS tools.

In practice, it is a low-risk tool.

llvm-ar

ccec_compiler/bin/llvm-ar

Packs and archives binary files.

Used when the operator static library is packed. You are advised not to use it independently.

This low-risk tool can only be used to pack the target file into a library file and no runtime information will be returned.

cce-ld

ccec_compiler/bin/cce-ld

Heterogeneous linker of the operator compiler.

High Level Test (HLT) of Runtime uses this tool. You are advised not to use it independently.

This low-risk tool can only be used to link to the intermediate file to generate an executable program and no runtime information will be returned.

llvm-objcopy

ccec_compiler/bin/llvm-objcopy

Copies and manipulates objects. In basic usage, it converts a target file into a binary file.

This low-risk tool can only be used to convert a file into the binary format and no runtime information will be returned.

llvm-strip

ccec_compiler/bin/llvm-strip

Removes debugging information from the target file.

Used to remove debugging information or delete any information from the target file.

This low-risk tool can only be used to remove debugging information and no runtime information will be returned.