
246 Compilers – Principles and Practice
NEXT: Execute next list item as a machine code:
TMP = Mem(LP)
increament LP to next item
JMP (TMP)
CALL: Call a subroutine A:
push LP to stack
LP = beginning of list-subroutine of A, A’
do NEXT
RET: Return from list-subroutine:
LP = TOS
do NEXT
We strongly advise you to see that you understand these three operations and convince yourself
that they work for both list-subroutines and machine language subroutines.
8.6.3 Indirect Threaded Code
Indirect Threaded code is preferred on machines which have indirect addressing available at low cost
(i.e., only a few clock cycles), as it gives a somewhat more ...