|
Example C Application: Monopoly
The following is an example of a small application that was translated from
C to Java by Jazillian.
By comparing the original C code with the Java code that Jazillian generates,
you should get a good feel for what Jazillian does.
The application plays the board game "Monopoly". The original C code is
about 2800 non-comment lines of code and the resulting Java code is about 2200 lines.
Jazillian allows clients to provide file names and variable
names by mapping the old variable names to new ones.
Better file names are specified by this file:
files.txt.
And better variable names are specified by this file:
app2.txt.
For a detailed, line-by-line comparison of the changes made to a single file,
see Example C Application: Code Comparison.
This example application was chosen because it was used by the
Ephedra translator. To get a really good feel for the difference between the
kind of code that Jazillian produces and the type of code that a more traditional
translator code produces, compare the Java files below with the
files that Ephedra generates. Go to
The Ephedra page
and click on "modified C source and generated Java source".
|