Coder Social home page Coder Social logo

lmrs2 / klee-uclibc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from klee/klee-uclibc

0.0 0.0 0.0 21.91 MB

KLEE's version of uClibc

License: GNU Lesser General Public License v2.1

Shell 0.14% C 81.82% C++ 7.91% Perl 0.24% Awk 0.01% Objective-C 0.29% Assembly 7.66% Makefile 1.59% Lex 0.06% Yacc 0.14% Roff 0.14%

klee-uclibc's Introduction

KLEE-uClibc

Build Status

This is a modified version version of uClibc for KLEE. Please see README for information about uClibc.

To build uClibc for KLEE:

  1. Make sure llvm-config is in your PATH (or set using --with-llvm-config). The LLVM version used by llvm-config should match the LLVM version used by the C LLVM Bitcode compiler you intend to use in step 2.

  2. Make sure you have one of the following C LLVM compilers

  • clang built in the LLVM tool directory (llvm-config --bindir)
  • clang in your PATH

The C compiler to be used will be looked for in the above order with the first working compiler to be used.

Note you can also force a particular C compiler by using the CC environment variable or by using --with-cc with the configure script.

  1. Run the configure script.

    $ ./configure --make-llvm-lib

    To see all options run

    $ ./configure --help

  2. By default a uClibc pre built .config file will be added to the uClibc root directory by the configure script. This is done to make compilation easier for users. However the --disable-prebuilt-config flag can be used to prevent a .config file being added. If you wish to create your own .config you can do so by running make menuconfig or make config after running the configure script.

  3. Compile

    $ make

    You can also add optional flags by running adding KLEE_CFLAGS=... to the end of the make line above. In particular, to compile printf, which is excluded by default, use:

    make KLEE_CFLAGS="-DKLEE_SYM_PRINTF"

    To compile in optimized mode use the --enable-release flag. Warning things might break if you do this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.