Abstract:
A restricted subset of Java called MiniJava, which includes variable declaration, object creation, inheritance and passing mechanism, numerical expressions, commands, method call, access control modifiers, and local variables, has been selected. JVM and Java class file serves as an immediate stage in compiling Java program. Using formal and precise notation, the language concept, related bytecode instructions and compilation schemes are presented. The compilation process is divided in two steps: compilation of class declaration and compilation of method body.