Rate This Document
Findability
Accuracy
Completeness
Readability

Download and Installation

  1. Install dependencies.
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    ## Install dependencies for the GCC client.
    yum install -y git
    yum install -y make
    yum install -y cmake
    yum install -y grpc
    yum install -y grpc-devel
    yum install -y grpc-plugins
    yum install -y protobuf-devel
    yum install -y jsoncpp
    yum install -y jsoncpp-devel
    yum install -y gcc-plugin-devel
    yum install -y llvm-mlir
    yum install -y llvm-mlir-devel
    yum install -y llvm-devel
    ## Install dependencies for the PIN server.
    yum install -y git
    yum install -y make
    yum install -y cmake
    yum install -y grpc
    yum install -y grpc-devel
    yum install -y grpc-plugins
    yum install -y protobuf-devel
    yum install -y jsoncpp
    yum install -y jsoncpp-devel
    yum install -y llvm-mlir
    yum install -y llvm-mlir-devel
    yum install -y llvm-devel
    
  2. Use either of the following methods to install or build PIN:
    1. Build
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      15
      ## Build the GCC client.
      git clone https://gitcode.com/openeuler/pin-gcc-client.git
      cd pin-gcc-client
      mkdir build
      cd build
      cmake ../ -DMLIR_DIR=${MLIR_PATH} -DLLVM_DIR=${LLVM_PATH}
      make
      
      ## Build the PIN server.
      git clone https://gitcode.com/openeuler/pin-server.git
      cd pin-server
      mkdir build
      cd build
      cmake ../ -DMLIR_DIR=${MLIR_PATH} -DLLVM_DIR=${LLVM_PATH}
      make
      
    2. yum
      1
      2
      3
      4
      ## Install the GCC client.
      yum install -y pin-gcc-client
      ## Install the PIN server.
      yum install -y pin-server