レジスタの生存区間を求める 4. 生存区間が早い順にレジスタ走査 a. 物理レジスタ(有限個)が空いていれば i. 空いている物理レジスタを割り当て ii. アクティブリストに追加 b. 空いてないなら i. アクティブリスト内でもっとも生存区間の終了が遅いやつを選ぶ ii. それに割り当てられていた物理レジスタを割り当てる iii. スタックに逃がし、アクティブリストから削除 参考文献: • Christian Wimmer. Linear scan register allocation for the java hotspottm client compiler. Master’s thesis, Johannes Kepler University Linz, 2004. • Massimiliano Poletto and Vivek Sarkar. Linear scan register allocation. ACM Transactions on Programming Languages and Systems (TOPLAS), Vol. 21, No. 5, pp. 895–913, 1999.