Skip to content

rampage644/zerovm-llvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

LLVM-based demos, samples and libraries for ZeroVM.

Prerequisitions

Environment

Make sure you have ZVM_PREFIX set.

export ZVM_PREFIX=/opt/zerovm

3rd-party Libraries

  1. Google test

     git clone https://github.com/zerovm/zrt
     cd lib/gtest
     cp libgtest.a $ZVM_PREFIX/x86_64-nacl/lib
    
  2. 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
    
  3. 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
    

libjit

cd libjit
make
make install

libzdl

cd libzdl
make
make install

MapReduce samples

Make sure BFD, LLVM, libjit, libzdl are installed and could be found in $ZVM_PREFIX/x86_64-nacl dir.

terasort

cd terasort
make
./start.sh

wordcount

cd wordcount
make
./mr_start.sh

About

demos and test for ZeroVM LLVM usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published