Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly language program to calculate and measure the time taken to execute different loops for the polynomial equation: y = 2 9 x

Write an assembly language program to calculate and measure the time taken to execute different loops
for the polynomial equation:
y=29x3+x2+x+8 where a,b,c,d are coefficients delay and x is an integer input value.
Implement a loop that iterates different loop times, each time calculating the value of y for a different x
value. Different loops will represent different load that will impose to the polynomial equation as
benchmarking method. Measure the time taken to complete the different loop and output the result in
Table 1 for comparison purpose. Assume that the input x values are consecutive integers starting from 1
to value of max defined looping N. Use appropriate timing instructions or techniques to accurately
measure the execution time. (use Irvine library)
C:\Drive D Old\Pengajaran COA\Sem 220232024\Asessment\Project\testpr...
Welcome to CPU Benchmark Program
Benchmark CPU time Using Equation y=5*x3+8*x2+15*x+10
(with delay coef 1, coef 2, coef 3, coef 4=5,8,15,10msec )
Enter Number of Looping (N)=50
CPU time Stress Test in progress...
Result:
First Capture Execution time in milisecond: 41744153
Second Capture Execution time in milisecond: 41747345
Different Execution time in milisecond: 3192
Value of Sum from the Stress Test (polynomial)=56136
Press 'y' to continue or 'n' to exit the benchmark :
Table 1 : Comparison Table
image text in transcribed

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Why must managers be aware of a firms external environment?

Answered: 1 week ago

Question

According to Table

Answered: 1 week ago