CPI
Go to file
2018-12-14 19:05:59 -05:00
pass Optimizations: no more unnecessary loads 2018-12-14 19:05:59 -05:00
safe_rt Test stack maintenance 2018-12-14 01:43:29 -05:00
tests Optimizations: no more unnecessary loads 2018-12-14 19:05:59 -05:00
.gitignore Upload base structure 2018-11-30 17:50:05 -05:00
CMakeLists.txt Change runtime from C++ to C 2018-12-13 15:14:30 -05:00
README.md Update README.md 2018-12-06 07:23:02 -05:00

CPI

After cloning the source to a folder CPI:

# Set environment variable for test script
export LLVM_BIN=<path_to_llvm_binaries>
cd CPI

# Always build in separate directory!!
mkdir build
cd build

# Generate makefiles
# You might need to set LLVM_DIR to LLVM sources, or add
# LLVM_BIN to PATH for cmake to work properly
cmake ../

# Run test scripts
cd ../test
./run.sh -b test.c
  • test.llvm.ll is unpatched assembly
  • test.llvm.p.ll is patched assembly
  • test.llvm.out is unpatched program
  • test.llvm.p.out is patched program