Question: Assembly programming can be used to implement benchmarks for validating the functionality and measuring the performance of newly built processors. You are tasked with developing

Assembly programming can be used to implement benchmarks for validating the functionality and measuring the performance of newly built processors. You are tasked with developing a simple assembly-based benchmarking kernel for the proposed processor. The functionality of the benchmark is described using a C/C+ model below

void vecInitCpy (){ cout<< Initiating vector init and copy benchmark ; int vec1[1000]; int vec2[1000]; for(int i=0;i<1000;i++) vec1[1]=rand();//populate vec1 with random integers for(int j=0;j<1000;j++) vec2[j]=vec1[j];//copy vec1 into vec2 cout<< [OK] Benchmark complete! ; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!