Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

gpt 1 0 0 9

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago