one thing to watch out for is compiler optimization. compilers do all sorts of clever things, including removing loops which increment values that no other part of the program subsequently uses. how can you ensure the compiler does not remove the main loop above from your tlb size estimator?