djrieger / mjplusplus

A compiler for the MiniJava language
http://djrieger.github.io/mjplusplus/doc/doxygen/html/
6 stars 1 forks source link

mjplusplus

mjplusplus is a compiler for the MiniJava language, a Java subset. MiniJava code is compiled to 64 bit x86 assembler. It is being developed by a group of students from Karlsruhe Institute of Technology (Group 5).

The code's documentation can be found here: http://djrieger.github.io/mjplusplus/doc/doxygen/html/

Compile by running make or make release in the mjplusplus directory, this will create an mj++ binary. To obtain a debugging version run make debug instead. It is recommended to use the mj++.sh wrapper, especially if you do not have libfirm in your library path or outside of mjplusplus at all.

Run the compiler like this: ./mj++ [--help|--dumplexgraph|--lextest|--parse|--check|--firm|--assembly] [--print-ast] [--suppress-errors] [--keep] [--compile-firm] [--out] FILE If libfirm is not in your library path you can use the mj++.sh wrapper.

Help options:

Run options:

If none of these options is given, generate an executable (default output file: a.out)

Other options:

Example: ./mj++ --out foo foo.mj