Question: WRITE AN ASSEMBLY LANGUAGE PROGRAM Write an assembly language program to calculate and measure the time taken to execute different loops for the polynomial equation:
Write an assembly language program to calculate and measure the time taken to execute different loops for the polynomial equation: y = (a xA3) + (b * xA2) + cx+d where a, b, c, d are coefficients delay and x is an integer input values. 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. Table I : Comparison Table No of Loop (N) 50 200 500 700 1000 Capture msec (before) 41744153 Capture msec (after) 41747345 CPU msec (different) 3192
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
