
                       upcompiler test cases

TEST CASES

In here, you find several test cases. Some of them are upcompilable, others not.


SCRIPTS

The scripts can be used to work with the test cases. They are:

build.sh
Compiling all test cases (C files). The generated files follow the naming
scheme:
  file.c.XY.Z
         || +- bin  : compiled program
         ||    s    : disassembled code 
         ||    data : content of data section
         |+--- d    : with symbols
         |     s    : striped version of 'd'
         +---- optimization level: 0, 1, 2, s

upcompile.sh
Upcompiles all compiled programs and compiles the upcompiled programs (you get 
.jar files for your .bin files, if everything works ;). Removes temporary files
like the .bb, .gv and .java files.
Adjust ucpath to point to the directory where the upcompiler (upcompiler.sh) is
in.
You can run the Java version of the programs with: java -cp <your jar file> Main

post.sh
Generates SVG pictures of the graphviz files.

clean.sh
Removes all artifacts produced by one of the scripts or the upcompiler. Also
removes your precious files if they have the same extension as one of the other
artifacts.


OTHER STUFF
randgen.c was used to benchmark some sorting algorithms. But if you implement 
the library calls for random number generation, you can use it as test case.
The README files is used to describe information about files in this directory,
see the README files for further explanation.

