- Product Bulletin
- Service Overview
-
User Guide
- Usage Overview
- Selecting HCE as the Public Image When Creating an ECS
- Changing an OS to HCE
- Migrating an OS
- Upgrading HCE and RPM Packages
- Security Updates for HCE
- Obtaining the openEuler Extended Software Packages
- Creating a Docker Image and Starting a Container
- Tools
- Kernel Functions and Interfaces
- xGPU
- Configuring the Repositories and Installing Software for HCE
-
FAQs
- What Do I Do If CentOS Linux Is No Longer Maintained?
- Does Huawei Cloud Have a Migration Solution for CentOS?
- How Do I Install the MLNX Driver?
- How Do I Enable SELinux on an ECS Running HCE?
- How Do I Change the OS Name on the Console After the OS Is Migrated?
- How Are Huawei Cloud EulerOS, EulerOS, and openEuler Different from One Another?
- How Do I Enable WireGuard in Kernel and Install wireguard-tools?
- How Do I Save the User Credential Information for Logging In to Docker Like What Docker CE Does?
- What Is OOM? Why Does OOM Occur?
- How Do I Handle IPVS Errors?
- Why Can't HCE Obtain an IPv6 Address After IPv6 Is Enabled for an ECS?
- How Do I Set Auto Log Using TMOUT?
- Best Practices
- General Reference
Copied.
BiSheng Compiler
BiSheng compiler is a high-performance, high-reliability, and easy-to-expand compiler developed by Huawei. BiSheng compiler has introduced multiple compilation technologies and supports programming languages C, C++, and Fortran.
Constraints
- BiSheng compiler can be used only with HCE 2.0 of the x86 architecture.
- The native Clang-compiled languages of HCE cannot work with the Clang-compiled languages of the BiSheng compiler. If you have installed the native Clang-compiled language package and need to use it, do not install the BiSheng compiler anymore.
If you have installed the BiSheng compiler but want to use the native Clang-compiled language, run rpm -e bisheng-compiler to delete the BiSheng compiler, and then open a new terminal to use the native Clang-compiled language.
Installing BiSheng Compiler
- Confirm that the repository is configured correctly.
Check whether the parameters in the /etc/yum.repos.d/hce.repo file are configured correctly. The correct configuration is as follows:
[base] name=HCE $releasever base baseurl=https://repo.huaweicloud.com/hce/$releasever/os/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://repo.huaweicloud.com/hce/$releasever/os/RPM-GPG-KEY-HCE-2 [updates] name=HCE $releasever updates baseurl=https://repo.huaweicloud.com/hce/$releasever/updates/$basearch/ ......
- Run yum install bisheng-compiler to install BiSheng compiler.
- Run source /usr/local/bisheng-compiler/env.sh to import environment variables.
If you have opened a new terminal, import the environment variables into the new terminal.
- Check whether BiSheng compiler has been installed.
Run clang –v to view the version number. If the command output contains the BiSheng compiler version, the BiSheng compiler has been successfully installed.
Using BiSheng Compiler
- Compile and run C and C++ programs.
clang [command line flags] hello.c -o hello.o ./hello.o clang++ [command line flags] hello.cpp -o hello.o ./hello.o
- Compile and run Fortran programs.
flang [command line flags] hello.f90 -o hello.o ./hello.o
- Specify a linker.
Specify the LLVM lld for BiSheng compiler. If you do not specify the LLVM lld, the default linker ld will be used.
clang [command line flags] -fuse-ld=lld hello.c -o hello.o ./hello.o
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot