Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.95 KB

INSTALL.md

File metadata and controls

36 lines (29 loc) · 1.95 KB

libdft: Installation Instructions

This piece of software, including this file is offered as-is, without warranty of any kind. Read the top level licence file for the exact terms.

Steps for compiling libdft

The simplest way to compile this package is:

  1. Extract the latest Pin build. Assuming that it was extracted in /usr/src/pin, we shall refer to that path as Pin's root path from now on.
  2. Type export PIN_ROOT=/usr/src/pin to set the environment variable PIN_ROOT to the root path of Pin. Replace /usr/src/pin with your Pin root path.
  3. cd to the directory src/, which contains the source code of libdft, and type make to compile the package (i.e., the libdft library)
  4. cd to the directory tools/ and type make tools to compile the accompanying tools (e.g., nullpin, libdft, libdft-dta, etc.).
  5. You can remove the program binaries and object files from src/ and tools/ by typing make clean on the respective directory.

Steps for compiling libdft on Windows

  1. Open a PowerShell console and run install_pin.ps1 to download and install Pin.
  2. Set $PIN_ROOT based on the output of the script.
  3. Install Chocolatery: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  4. Install GNU Make for Windows: choco install make
  5. cd to the directory src/, which contains the source code of libdft, and type make to compile the package (i.e., the libdft library)

Supported platforms

libdft has been successfully tested with:

  • All Debian GNU/Linux versions starting with v5 (lenny). In principle it should also work on any other Linux distribution.
  • Intel Pin 3.x