BiSheng Compiler Installation Guide
BiSheng Compiler Overview
BiSheng Compiler is a high-performance, high-reliability, and easy-to-expand compiler toolchain developed by the Huawei Compiler Laboratory for general-purpose processor architectures, such as Kunpeng. It introduces and enhances multiple compilation optimization technologies and supports different programming languages, such as C, C++, and Fortran.
BiSheng Compiler has been integrated into openEuler. It can be installed using the Yum repository in the openEuler OS or using the software package in a non-openEuler OS.
Go to the official website of BiSheng Compiler to obtain required resources, including the software and documentation.
Installation Using the Yum Repository
Perform the following operations as the root user.
Run the following command to add the configuration file bisheng-compiler.repo to the /etc/yum.repos.d/ directory:
cat > /etc/yum.repos.d/bisheng-compiler.repo << EOF [bisheng-compiler] name=bisheng-compiler baseurl=https://repo.oepkgs.net/bisheng/aarch64/ enabled=1 gpgcheck=0 priority=100 EOF
Download the RPM package of BiSheng Compiler from the Yum repository and install it.
yum update yum install bisheng-compiler
(Optional) Clear the hash table in the current window.
If an LLVM compiler of another version is available in the system, run the following command immediately after installing BiSheng Compiler:
hash -r
This prevents the Clang command from being captured by the hash table. If the Clang command is captured by the hash table, BiSheng Compiler or the open source LLVM compiler cannot be used.
Check whether the installation is successful.
After the installation is complete, run the following command to verify the BiSheng Compiler version:
clang -v
If the command output contains the BiSheng compiler version information, the installation is successful.