IJVM is a machine-level coding in assembly language that will allow you to convert code from Java and C++ object-oriented programming (OOP) languages into machine assembly code. Hint: Remember for a Java statement such as m = m +2; it requires three IJVM statements from (IPUSH, IADD) to execute the instruction by the assembler.
Part 1: Using what you have learned about IJVM, convert the following Java code into IJVM. Submit the code in a written document.
k = j + l;
If (k == 4)
L = 16;
j = j – 2;
Part 2: In a written document, address the following topics in relationship to the code you just converted:
How are the instructions represented at both the machine level and in context of a symbolic assembler?
Explain the different instruction formats in terms of fixed and variable length.
How are these instructions executed in a classical von Neumann machine?
Added on 23.05.2016 15:17