A code reordering tool to improve code locality and TLB performance