Language Implementation Methods - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Language Implementation Methods

Description:

... read and causes an action or change in state of the executing machine. ... Hybrid System (Sebesta Diagram) - Small translation cost - Medium execution speed ... – PowerPoint PPT presentation

Number of Views:51
Avg rating:3.0/5.0
Slides: 9
Provided by: davidwoo4
Category:

less

Transcript and Presenter's Notes

Title: Language Implementation Methods


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 (0s and 1s) 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
Write a Comment
User Comments (0)
About PowerShow.com