0% found this document useful (0 votes)
40 views

Illustrate The Purely Compiled Implementation

The document discusses the advantages and disadvantages of purely interpreted and purely compiled implementations. Purely interpreted implementations have high flexibility but low efficiency, while purely compiled implementations have high efficiency but less flexibility. It also discusses using an intermediate machine to combine advantages of interpretation and compilation. Implementations can be interpretive or compiled depending on whether the intermediate machine interpreter is substantially different or the same as the host machine interpreter.

Uploaded by

phoopa97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Illustrate The Purely Compiled Implementation

The document discusses the advantages and disadvantages of purely interpreted and purely compiled implementations. Purely interpreted implementations have high flexibility but low efficiency, while purely compiled implementations have high efficiency but less flexibility. It also discusses using an intermediate machine to combine advantages of interpretation and compilation. Implementations can be interpretive or compiled depending on whether the intermediate machine interpreter is substantially different or the same as the host machine interpreter.

Uploaded by

phoopa97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1. Illustrate the purely compiled implementation.

2. Explain the advantages and disadvantages of purely interpreted and


purely compile implementation.
Purely interpreted implementation

Advantages
 High Flexibility
 Debugging tool relatively easy
 Interpreter is simpler than compiler

Disadvantages
 Low Efficiency
 No translation and only perform decoding
 Execution time + decoding time
 For every occurrence of same command, separate decoding steps are
performed
 Low performance

Purely Compiled Implementation

Advantages
 Efficiency
 Complete translation from source program to object program
 Executing object program is more efficient

Disadvantages
 Less Flexibility
 It loses all information about the structure of the source program
 Debugging is difficult
3. Illustrate the implementation of intermediate machine.

4. List and explain the types of implementation based on intermediate


level and host and source level.

Types of Implementation Based on Intermediate Level and Source


or Host Level
 If interpreter of intermediate machine substantially different from
interpreter of host machine, interpretive implementation type is built.

 If interpreter of intermediate machine substantially the same as the


interpreter of host machine, compiled type implementation is built.

You might also like