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.6 GHz clock (i.e., the clock ticks 2.6 billion times per second). This particular

Suppose that you are working with a CISC machine using a 2.6 GHz clock (i.e., the clock ticks 2.6 billion times per second). This particular computer uses MASM-like instructions with the following timings:

add reg, mem 7 clock cycles (i.e., the ADD micro-program has 7 instructions) add reg, immed 2 clock cycles loop label 5 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.

 mov bx, 0 ;initialize sum mov ecx, MAX_SIZE ;initialize loop counter mov esi, OFFSET list ;initialize array pointer more: add bx, image text in transcribed [ esi ] ;add current list element add esi, 2 ;move array pointer to next element loop more ;auto-decrement ecx, jump to more if ecx  0 

After initialization, how many array elements can be processed in 2.8 ms? Round your answer to the nearest integer. Note that 1 ms. = 0.001 second.

esl

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 Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions