I have an array of 100 elements and I want to add all these 100 elements. I'm using the C code for the same as bellow
for(i=0;i<100;i++)
{
sum+= a[i];
}
let us assume processor is taking 100 instructions cycle to add 100 elements which will reduce the speed of the application. So, I would like to know is there any instruction which will do the addition of 100 elements in a single instruction cycle to speed up the application.