Suppose I have, in C99, for(int j=0; j < t->k; j++)
, t->k
does not change throughout the loop iteration. Does the compiler optimize this line, or there will be one dereferencing operation per loop iteration?
In other words, would
tmpk = t->k;
for(int j = 0; j < tmpk; j++)
be better for a large number of iterations?