Giter Club home page Giter Club logo

iburg's Introduction

Build Status iburg

iburg is a code generator generator. It uses dynamic programming at compile time. It is described in

C. W. Fraser, D. R. Hanson and T. A. Proebsting,
Engineering a simple, efficient code generator generator,
ACM Letters on Prog. Languages and Systems 1, 3 (Sep. 1992), 213-226.

http://storage.webhop.net/documents/iburg.pdf

iburg is written in C. It requires a C compiler and a Yacc program to build. If you need a Yacc program, a dependency-free, cross-platform Yacc can be found here: https://github.com/ibara/yacc

Compiling

Once you have a C compiler and a Yacc program, you can compile iburg by typing make. There should be no warnings or errors with most modern compilers.

Testing

make test runs iburg on sample[45].brg and executes the resulting programs. The output should be something like:

$ make test
./iburg -I sample4.brg sample4.c; cc -o test4 sample4.c; ./test4
sample4.c
i = c + 4;
stmt: ASGNI(disp,reg)
 disp: ADDRLP
 reg: disp
  disp: ADDI(reg,con)
   reg: CVCI(INDIRC(disp))
    disp: ADDRLP
   con: CNSTI
./iburg -I sample5.brg sample5.c; cc -o test5 sample5.c; ./test5
sample5.c
stm: MOVE(MEM(loc),reg)
 loc: NAME
 reg: PLUS(MEM(loc),reg)
  loc: PLUS(NAME,reg)
   reg: MEM(loc)
    loc: NAME
  reg: con
   con: CONST

$

Installing

To install iburg, run make install with root privileges.

Licensing

iburg is distributed under the terms of the MIT license. Please see LICENSE for details.

Get a tarball

https://devio.us/~bcallah/iburg/iburg-20170105.tar.gz

iburg's People

Forkers

geekstakulus

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.