Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
Lorenzo Tessiore edited this page Jun 18, 2015 · 32 revisions

Setup and Build Instructions

Setup

  • Clone the entire repo with: git clone https://github.com/NETMF/zelig-pr.git into directory <repo>
  • Move to directory <repo>\external_ and install GCC and LLVM using the scripts located in that directory
  • setup the following environment variables:
    • LLVM_BIN=<repo>\external\LLVM\Debug\bin\
    • LLVM_INCLUDE=<repo>\external\LLVM\include\
    • LLVM_LIBS=<repo>\external\LLVM\
    • GCC4MBED_DIR=<repo>\external\gcc4mbed
  • change LLVM header file IRbuilder.h. line 74, from

InsertPt = nullptr; to
InsertPt = BasicBlock::iterator(nullptr);

  • move to directory <repo>\Zelig\ext-tools and build the a few projects in the directories below, by opening their solution with Visual Studio and building it. If asked to upgrade the project, just do it and ignore any errors or warnings.
    • GLEE
    • JLINK
    • CSharpTools\Parser
    • TargetAdapters
    • binutils
  • [optional, pre-built binaries are available and referenced by other projects] Move to directory <repo>\Zelig\Zelig and pen Zelig solution Zelig.sln
    • build LLVMIR project first under code transformations, it will take a while
    • build the rest of the solution
  • You are now ready to try the system on a real device!

Go to Build and Run Test Demo

Clone this wiki locally