Giter Club home page Giter Club logo

smake's Introduction

smake & scmake

A program analysis preparation tool for C programs made with GNU Make and cmake

smake

smake observes the build process driven by make, and derives the standalone, preprocessed form of the source code that makes up each C program linked during the process. smake creates a directory sparrow/, where you can perform program analyses.

You can instantly start your program analysis in two steps:

  1. Initialize sparrow
  2. Use smake instead of make to build your programs.

Usage

smake r1045
  a program analysis preparation tool for C programs made with GNU Make

smake observes the build process driven by make(1), and derives the
standalone, preprocessed form of the source code that makes up each
C program linked during the process.  smake creates a directory
"sparrow/", where you can perform program analyses with make(1).

You can instantly start your program analysis in three steps:
 1. Initialize "sparrow/", i.e. $AMAKEDIR.
 2. Use `smake` instead of `make` to build your programs.
 3. Use `make` under $AMAKEDIR to analyze your programs.

Usage:
 $ smake --init [<options>]
  initializes sparrow/ to handle the regular use of smake.
  If you use a special compiler (e.g. cross compiler), its type must be
  specified by appending gcc style options, e.g. `-b mips-linux -V 2.95`.

 $ smake --clean
  completely removes sparrow/.

 $ smake <parameters for make>
  runs `make [<with parameters>]` and bookkeeps $AMAKEDIR.

 $ smake ./configure
  runs `./configure` under the same environment `smake` runs.

 $ smake --help
  shows this message.

scmake

scmake executes cmake and preprocesses every C source-code recorded in "compile_commands.json". scmake creates a directory sparrow/, where you can perform program analysis.

Usage

usage: scmake [-h] [--cmake] [--cmake-out CMAKE_OUT] [--out [OUT]]

optional arguments:
  -h, --help            show this help message and exit
  --cmake               execute cmake and save result into CMAKE_OUT
  --cmake-out CMAKE_OUT
                        cmake output directory (default: build)
  --out [OUT]           scmake output directory (default: sparrow)

smake's People

Contributors

goodtaeeun avatar hhro avatar kihongheo avatar

Watchers

 avatar  avatar

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.