Projects 3 and 4
The first part is due on November 22, 2005 and the second part is due on
December 3, 2005.
-
Modify your Lex program and yacc programs so that when a Java program is given as an
input, the output will be a Byte code for that program. You will be using the
jasmine assembler found in source forge.
- Find Basic Blocks in the byte codes and draw a directed graph of the
control flow. You can use the Graph Draw in Java for drawing graphs.
Find the def and use of all the variables and methods.