我要评分
获取效率
正确性
完整性
易理解

Installing the BiSheng Compiler

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Install the BiSheng Compiler.
    wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz
    mkdir -p /opt/compiler
    cp -r bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz /opt/compiler
    cd /opt/compiler
    tar -zxvf bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz
  3. Set the environment variables of the BiSheng Compiler.
    export PATH=/opt/compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux/bin:$PATH
    export LD_LIBRARY_PATH=/opt/compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux/lib:$LD_LIBRARY_PATH
    export CC=clang CXX=clang++ FC=flang
  4. Perform the verification.
    clang -v

    If the command output contains the BiSheng Compiler version information, the installation is successful.