I am not sure what you mean by speeding up the code, do you mean speeding up the process of compilation? or speeding up the process of execution? And when you say speed up, do you mean making it more efficient?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
time_t begin, end;
long ii,jj,mm,aa,bb,cc,dd;
begin = time(NULL);
for (long i =0;i<10000; i++)
for (long j =0;j<10000; j++)
for (long m =0;m<10000; m++)
{
long a,b,c,d;
a = b = c = d = 0;
}
end = time(NULL);
printf("\nIn loop: Pracess TIME: %d",end - begin);
begin = time(NULL);
for (ii =0;ii<10000; ii++)
for (jj =0;jj<10000; jj++)
for (mm =0;mm<10000; mm++)
{
aa = bb = cc = dd = 0;
}
end = time(NULL);
printf("\nOut loop: Pracess TIME: %d",end - begin);
getchar();
}