Register Machine とは?
register machine は、ハードウェア CPU や一部の virtual machine で使われる計算モデルで、命令が読み書きするレジスタを名指しします。演算は、スタック上で作業するのではなく、ソースと宛先のレジスタを明示的に指定します。レジスタベースの virtual machine は、同じ作業に対してスタックベースのものより少ない命令で済むことが多いです。
なぜ重要か
レジスタベースの設計は、より少なく密な命令を実行でき、一部の virtual machine はこれを速度のために活用します。stack machine と比較すると、インタプリタやコンパイラ構築における重要な設計上の選択が理解できます。
関連ガイド
What Is a Stack Machine?A stack machine is a virtual machine whose instructions operate on an operand stack, pushing and popping valu…
What Is Three-Address Code?Three-address code is an intermediate representation where each instruction has at most three operands, typic…
What Is Register Allocation?Register allocation is the compiler step that decides which program values are kept in fast CPU registers and…