write my assignment 4819

please i need help with these questions,,, please with explication

8 . Give two examples of improvements ( other than loop unrolling , see problem9 ) that can be performed on the following code snippet that would improvethe overall performance of the code ? ( 10 points )/ / assume that vector a uses the vector data type described in chapter 5 of the bookIf ( the structure with int len and ptr data to array of len elements )void product ( vec ptra , data +* dest ){long int i ;* dest = 1 :`data + vala ;for ( i = O ; i < vec length ( a ) ; itt ) {get vec element ( a , i , &vala );* dest =* dest* vala;9 . Give the C code that implements the optimizations you mentioned in 8 , ANDunrolls the loop from problem 8 2 times and uses 2 accumulators . ( 20 points )

 
"Not answered?"
Get the Answer