pombredanne / hscompile

MNRL HyperScan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hscompile

This repository contains a compiler and runtime for MNRL files using Hyperscan as a CPU back-end. There is also support for compiling PCRE to MNRL files.

Note: Only hStates are currently supported.

Required Packages

  • cmake >= 2.6
  • Hyperscan 4.4 source
    • Boost >= 1.57
  • MNRL

Building

To successfully build hscompile, you must first build Hyperscan and the MNRL C++ API:

git clone https://github.com/01org/hyperscan
cd hyperscan
git checkout v4.4.1
mkdir build
cd build
cmake ..
make
git clone https://github.com/kevinaangstadt/mnrl
cd mnrl/C++
make

Next, clone the hscompile repository and create a build directory inside the repo. Then, you can use cmake to generate a Makefile and build. You must provide paths to Hyperscan (HS_SOURCE_DIR) and MNRL (MNRL_SOURCE_DIR), and you can override the default Hyperscan build path with HS_BUILD_DIR.

git clone https://github.com/kevinaangstadt/hscompile
cd hscompile
mkdir build
cd build
cmake -DHS_SOURCE_DIR=/path/to/hyperscan -DMNRL_SOURCE_DIR=/path/to/mnrl/C++ ..
make

About

MNRL HyperScan

License:Other


Languages

Language:C 62.6%Language:C++ 35.3%Language:CMake 2.1%