Professional Documents
Culture Documents
2 Language Processing
Activities
The fundamental language processing activities divided into
two parts.
1. Program generation activities
2. Program execution activities
[Prog. Generation]
Specification Gap
Application
Domain
[Prog. Execution]
Execution Gap
PL
Execution
Domain
Domain
1
Language Processing
Activities
A program generation activity aims to generation of a
program. Source is the application domain and target is
the PL domain. It bridges specification gap.
A program execution activity aims to execute a program
written in PL. source is PL domain and target is
execution domain. It bridges execution gap.
1. Program Generation
Errors
Program
Specification
Program
Generator
Program
in target PL
1. Program Generation
The generator domain is close to the application domain, it is
easy for the designer or programmer to write the specification
of the program to be generated.
A program generator is software that enables an individual to
create a program with less efforts and prog. Knowledge.
A user may only be required to specify the step or rules
required for the program and not need to write and code or
less code.
2. Program Execution
Two popular models for program execution are:
1. Program Translation
2. Program Interpretation
Source
Program
Translator
Translator
m/c
m/c language
language
program
program
Target
Program
Memory
CPU
Memory
PC
PC
Source
Source
PC
PC
M.L.
M.L.
Errors
Program
Program
Program
Program
++
++
Data
Data
Data
Data
10
MCQ
The _________ is a software system which
generates a program in the target PL.
A. Program Generator
B. Program Specification
C. Program Execution
D. program Interpretation
MCQ
The _________ is a software system which
generates a program in the target PL.
A. Program Generator
B. Program Specification
C. Program Execution
D. program Interpretation
MCQ
the CPU use ___________ to note the address of the
next instruction to be executed.
A. program counter(PC)
B. Pretty printer
C. static checker
D. None
MCQ
the CPU use ___________ to note the address of the
next instruction to be executed.
A. program counter(PC)
B. Pretty printer
C. static checker
D. None
MCQ
The Program generator _______ to convert _________
The _________ fetch, decode and execute instruction