Computer system is usually constructed in multiple levels. The following four qu
ID: 3769596 • Letter: C
Question
Computer system is usually constructed in multiple levels. The following four questions under this problem involve "High language level", "Machine language level (ISA)", and "Microprogramming level (micro-architecture)". Translate the C^+ + code segment (1^st column in the table below) into Mic-1 ijvm machine language (2^nd column), assuming i, j, and k are the first, the second and the third local variables, respectively. Translate the code in Mic-1 IJVM instructions you derive above into Mic-I machine instructions (3^nd column). Please use hexadecimals to represent machine language instructions. For each Mic-1 machine instruction in Column 3. write the number of Mic-1 micro-instructions needed to interpret the machine instruction in Column 4. Don't forget the Main l micro-instruction Assuming the initial values of the three local variables are I = 1, j = l, k = 0. respectively , how many nanoseconds does it take for a I-GHz Mic-1 computer to execute this C++ code segment?Explanation / Answer
ILOAD i 0x15 0x01 ILOAD j 0x15 0x02 IADD 0x60 ISTORE i 0x36 0x01 ILOAD i 0x15 0x01 BIPUSH 2 0x10 IF_ICMPEQ L1 0x9F 0x00 0x0D ILOAD i 0x15 0x01 BIPUSH 2 0x10 IADD 0x60 ISTORE k 0x36 0x03 GOTO L2 0xA7 L1: BIPUSH 10 0x10 ISTORE k 0x36 0x03 L2:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.