Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Computer Organization We structure computer as series of abstractions (levels), and each abstraction (leve) builds on the one below it. VWe are designing a computer
Computer Organization
We structure computer as series of abstractions (levels), and each abstraction (leve) builds on the one below it. VWe are designing a computer and decide to adopt the following foive-level structure Level 4 Hign-level Programming Language CeJaa Level 3: Assambly Language IJVM Level 2 Mechine Language (JVM) Level 1 Micro-Machine Mic-1 (Maroprogramming Lanpuage) Level 0 Gates and Circuits A user wrote a piece of C++Java code (2 instructions in C+(JAVA), which is in Level4 it sum = 0; for (0, k10: ) sum = sum + i; Please answer the following questions [45 points)-Level-3& Level-2 a) Translate the above Level-4 code into Level-3 code (in LJVM language) b) Translate your work at Level-3 to Level-2 code (in LIVM machine language) c) Count how many IJVM instructions are used to run those 2 C++IJAVA instructions 2. [45 points]Level-1 a) Your above work has to be carried out by a series of Mic-1 instructions. Count the number of Mic-1 instructions are used to to interpret (execute) the above IJVM code. b) Assume this computer is driven by a 4-GHz clock (CPU speed). How many clock cycles are needed to run this the user's code? c) How much time is needed to run the above 2 C++/JAVA sentences on this computer Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started