Giter Club home page Giter Club logo

bytecode2firm's Introduction

bytecode2firm - a Java bytecode front end for libFirm.

  1. Introduction

bytecode2firm is a compiler that translates java bytecode to machine code. Code generation is done with the libfirm intermediate representatin and backend. It is a static (ahead of time) compiler.

It also includes "simplert" a minimal runtime library. This is partially implemented as a shared library and partially as java files.

  1. Building

Make sure you have libfirm and liboo in the current directory. If you have a git checkout you can do:

$ git submodule update --init

Then you can do the usual

$ make

This builds bytecode2firm along with our simple testing runtime.

To run the testsuite for regressions:

$ make test
  1. libgcj runtime

This step is optional.

If you want as much Java library as possible, you need libgcj on your system. Install gcj. bytecode2firm needs libgcj.so, and the precompiled runtime classes from gcj's rt.jar. In Ubuntu, install "libgcj-10 gcj-4.4-jre-lib". (Hint: you might want to make sure that gcj is not your default Java VM afterwards. See "update-alternatives --config X", where X = {java, javac, javah, ...})

For the initial setup, you can execute a script (you might need to adjust the paths used in that script).

$ ./setup_runtime_gcj.sh
  1. Running

Make sure build/bytecode2firm is in your PATH. A typical invokation looks like:

$ javac Main.java
$ bytecode2firm -cp . Main

There is also a little testsuite at http://pp.ipd.kit.edu/git/bytecode2firm-testsuite/

  1. Contact

You can contact us at [email protected]

bytecode2firm's People

Contributors

jopperm avatar matzeb avatar sykano avatar manuelmohr avatar fread 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.