INTERPRETATION
BASIC INTERPRETATION
THREADED INTERPRETATION
PRECODING
DIRECT THREADED INTERPRETATION
INTERPRETING COMPLEX INSTRUCTION SET
1
BASIC INTERPRETATION
• The Decode and Dispatch Method
2
THREADED INTERPRETATION
3
PRECODING AND DIRECT THREADED INTERPRETATION
• BASIC PRECODING
 Using intermediate code
4
DIRECT THREADED INTERPRETATION
5
INTERPRETING COMPLEX INSTRUCTION SET
 Interpreting a simple instruction set is different from a Complex one
 Interpretation in a CISC instruction set is difficult due to
• Variety of instruction formats
• Variable instruction lengths
• Variable field lengths
INTERPRETATION OF IA-32 ISA
Format of IA-32 Instructions
6
INTERPRETATION PROCESS IA-32 ISA
 Interpretation of a CISC ISA, particularly IA-32 is straight forward
 The Process contains 2 phases,
• Decoding (fills in instruction structure)
• Dispatch
7
OPTIMIZATION IN INTERPRETING IA-32 ISA BY COMMON CASES
 In IA-32 ISA there are number of common cases of simple instructions with,
• No prefix bytes
• A Single byte opcode
• Simple operand Specifiers
 These simple instructions may be differentiated from complex ones based on the
first byte information
8
THREADED INTERPRETATION IN CISC ISA
 To implement a threaded interpreter in CISC ISA, We should organize
• A Simple Decode and Dispatch Routine (for common cases)
• A Centralized Decode and Dispatch Routine (for Complex instructions)
9
THANK YOU
10

Interpretation