1 / 8

Language Implementation Methods

Learn about the three implementation methods for programming languages: Compilation, Pure Interpretation, and Hybrid System. Understand the translation processes and execution speeds involved in each method.

rsimonds
Download Presentation

Language Implementation Methods

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Language Implementation Methods David Woolbright

  2. Interpretation • Interpretation occurs when the code that represents a program is read and causes an action or change in state of the executing machine. • Interpretation can occur in hardware or software

  3. Implementation of Languages There are three general methods for implementing a language Method 1: Compilation – The source program is translated into machine code (0’s and 1’s) which is interpreted by hardware - Slow translation - Fast execution

  4. Compilation Process (Sebesta Diagram)

  5. Pure Interpretation Method 2: Pure Interpretation – The source code is unchanged. An interpreter program executes reading your source as data to determine how to “execute” your program • Slow execution • Very flexible

  6. Pure Interpretation (Sebesta Diagram)

  7. Hybrid System Method 3: Hybrid System - The source code is partially translated to an intermediate format. This intermediate code is input to an interpreter. • Small translation cost • Medium execution speed

  8. Hybrid System(Sebesta Diagram) • - Small translation cost • - Medium execution speed

More Related