Question: We use a processor with CPIs for the following classes of instructions to execute the following Ccode. 1) Count how many instructions are to be
We use a processor with CPIs for the following classes of instructions to execute the following Ccode. 1) Count how many instructions are to be executed for each of the class, and 2) calculate the total number of cycles for each class and overall total cycles for all classes, and 3 ) calculate the percentage of total cycles by each class with respect to the overall total cycles. Addition used for calculating memory effective address for load and store instructions should NOT be considered. But loop count increment is considered as addition. int N=1000,000; int A[N],B[N],i; for (i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
