Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that you are working with a CISC machine using a 2.5 GHz clock (i.e., the clock ticks 2.5 billion times per second). This particular

image text in transcribed

Suppose that you are working with a CISC machine using a 2.5 GHz clock (i.e., the clock ticks 2.5 billion times per second). This particular computer uses MASM-like instructions with the following timings: ADD reg, mem ADD reg, immed LOOP _Label Name ; 7 clock cycles (i.e., the ADD micro-program has 7 instructions) ; 4 clock cycles ; 6 clock cycles Suppose that the following code fragment is used to sum elements of a numeric array. For this problem, assume that memory limitations are non-existent and that there is no limit to the size of the array. BX, ;initialize sum ;initialize LOOP counter ;initialize array pointer MOV 0 MOV ECX, MAX_SIZE MOV ESI, OFFSET list _ProcessArray: ADD BX, [ESI] 2 LOOP _ProcessArray ;Add current list element ; Move array pointe to next element ; auto-decrement ECX, jump to more if ECX = 0 After initialization, how many array elements can be processed in 3.1 millisecond (ms)? Round your answer to the nearest integer. Note that 1 ms = 0.001 second

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 Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago