Question

In: Computer Science

Topics 1. Introduction 2. MIPS instruction set architecture (ISA) Exercise 1 Answer the following questions. (a)...

Topics 1. Introduction 2. MIPS instruction set architecture (ISA)

Exercise 1 Answer the following questions. (a) List the five classic components of a computer. (b) Describe the steps that transform a program written in a high-level language such as Java into a representation that is directly executed by a computer processor.

Solutions

Expert Solution

(a)

Five Classic components:

1) Datapath

It helps to control and manipulate the data coming through processor.

2) Memory

It helps to store data and hold instructions for currently executing programs.

3) Control

As the name indicates it generates control signals. These signals lead to the operation of Datapath and Memory.

4) Input

It provides input to the processor. Keyboard, Mouse, disks etc are input devices.

5) Output

These are external devices which receive data from processor. Devices like displays, printers, disks are output devices.

(b)

High level languages are converted into Machine language before execution. A computer processor can understand only Machine language. Machine language instructions are encoded as binary numbers, that is zeros and ones.

A java compiler converts the source code into byte code. After compilation a .class file is generated. Eventhough it is similar to Machine language, it is not the actual one. A java class file cannot be directly executed by processor.

A java interpreter is required to run the compiled java bytecode. A java progran is independent of OS. It runs on Java Virtual Machine(JVM).

When a class file is loaded, JIT(Just-in-TIme) compiler convert the loaded bytecode into machine code which is understandable by processor.


Related Solutions

Consider two different implementations of the same instruction set architecture. The instructions can be divided into...
Consider two different implementations of the same instruction set architecture. The instructions can be divided into four classes according to their CPI (classes A, B, C, and D). P1 with a clock rate of 2.5 GHz and CPIs of 1, 2, 3, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2, and 2. Given a program with a dynamic instruction count of 1.0E6 instructions divided into classes as follows: 10% class A,...
2–1. Using the Comprehensive Annual Financial Report obtained for Exercise 1–1, answer the following questions: a....
2–1. Using the Comprehensive Annual Financial Report obtained for Exercise 1–1, answer the following questions: a. Compare the items discussed in the MD&A in your CAFR with the list of items in this chapter. Which topics listed in this chapter are not in your CAFR? Which topics are in your CAFR that are not listed in this chapter? Do you think your CAFR has a reasonably complete discussion? b. From the MD&A in your report, write a short summary of...
Instruction: Discuss and answer the required questions in the following case study, then reply to at...
Instruction: Discuss and answer the required questions in the following case study, then reply to at least two of your classmates' discussions with substantial content by Sunday midnight. The Tremblays have been preapproved by their bank to enter the housing market with a mortgage interest rate of 8.6%. They have $30,000 set aside for a down payment. They have also calculated that they can afford a monthly payment of $1,350. They have narrowed their search to three houses and are...
Please answer the following: a. What are the key design issues for a microprocessor instruction set?...
Please answer the following: a. What are the key design issues for a microprocessor instruction set? b. Why do you consider the above design issues to be important? (please type answer)
Answer 3 of the following questions/topics Define the age group and name at least 2 theorists...
Answer 3 of the following questions/topics Define the age group and name at least 2 theorists that study that age group. Be sure to mention specific tasks, milestones, growth patterns, cognitive development patterns, play, exercise, and other pertinent element of the age group you are discussing 1)_ Summarize the growth and development of the Middle Child 2)_ Summarize the growth and development of the Adolescent 3)_ Summarize the growth and development of the Young Adult 4)_ Summarize the growth and...
With these topics "Choosing Innovation Projects" and "Collaboration Strategies" and answer the following questions: 1. Why...
With these topics "Choosing Innovation Projects" and "Collaboration Strategies" and answer the following questions: 1. Why might a firm want to consider quantitative and qualitative assessments of a project? Can you cite and example? NOTE: Please cite it also give an example. 2. When, in the course of establishing a strategic firm's direction, would you consider going Solo- as opposed to a collaborative effort? Can you Do both?
Hello, please answer and explain the following questions and topics regarding cell and tissue characteristics 1)...
Hello, please answer and explain the following questions and topics regarding cell and tissue characteristics 1) Predict the effects of dysfunction in each cellular organelle 2) Differentiate the four functions of the cell membrane 3) Predict how changes in oxygen delivery to cell change cellular respiration and levels of adenosine triphosphate and carbon dioxide. 4) Predict changes in membrane potentials based on diffusion of ions 5) Link the process of cell differentiation to the development of organ systems in the...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the values of each of the fields for that format in decimal (3) convert each of these decimal val- ues to binary (4) represent the entire instruction as one hexadecimal value j L2. # where L2 is at the decimal byte address 1,048,608
Exercise 1 Questions Answer Exercise 1 questions on a separate word document. Terminology: For each description...
Exercise 1 Questions Answer Exercise 1 questions on a separate word document. Terminology: For each description below, give the appropriate term to match the description (Hint: Remember terms are bolded in the text). There is a table that lists the different stores a retail location operations and different attributes about each store is contained in a column of the table. One of these attributes is location and another lists the date the store was first opened. Employees are listed in...
Consider the following C code: (10 marks) // write a MIPS instruction to initialize s0 to...
Consider the following C code: // write a MIPS instruction to initialize s0 to 6 t0 = ((s03 - 93)2 + s0 ) << 2 t1 = t0 / 4 Q2.1: Write a MIPS program that performs the operation of the above C program. Q2.2: What is the value of $t0 and $t1 after running your MIPS program (write your answer in a comment at the end of the code). Submit your answer to Q2 in a file named A2_Q2.asm
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT