Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. http://courses.cs.vt.edu/~csonline/MachineArchitecture/Lessons/CPU/Lesson.html. Access the following link, read the page and run one of the sum and count programs (you need to view animation and then

3. http://courses.cs.vt.edu/~csonline/MachineArchitecture/Lessons/CPU/Lesson.html. Access the following link, read the page and run one of the sum and count programs (you need to view animation and then click on run tutorial). Note that the process design in that page is just a simplified processor and does NOT represent any real processor (such MIPS, ARM, Intel, etc.). However, the concepts described are the same to those we discussed in the class and are generic to any processor. After reading and running the tutorial answer the following questions:

a. Define the PC and the IR registers?

b. When you run the tutorial what is the content of the PC register and the IR register?

c. There are two buttons that enable to show the code as assembly code or machine code. Why you click on machine code the number of instructions does not change compare to the assembly code, explain why?

d. If you were to convert this program to a C program, do you think the number of instructions will be the same in the C program as in the assembly program?

e. If each instruction is 32 bits, what is the size of the sum program.

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

=+What is our leadership style like?

Answered: 1 week ago