LLVM-based demos, samples and libraries for ZeroVM.
Make sure you have ZVM_PREFIX set.
export ZVM_PREFIX=/opt/zerovm
-
Google test
git clone https://github.com/zerovm/zrt cd lib/gtest cp libgtest.a $ZVM_PREFIX/x86_64-nacl/lib
-
BFD (Binary File Descriptor)
git clone https://github.com/zerovm/binutils cd binutils cd bfd ./configure --host=x86_64-nacl --disable-werror --prefix=$ZVM_PREFIX/x86_64-nacl --exec-prefix=$ZVM_PREFIX/x86_64-nacl make make install
-
LLVM + Clang
git clone https://github.com/zerovm/llvm-port llvm cd llvm cd tools git clone https://github.com/zerovm/clang-port clang cd .. ./build.sh cd build make install
cd libjit
make
make install
cd libzdl
make
make install
Make sure BFD, LLVM, libjit, libzdl are installed and could be found in $ZVM_PREFIX/x86_64-nacl dir.
cd terasort
make
./start.sh
cd wordcount
make
./mr_start.sh