Please enable JavaScript.
Coggle requires JavaScript to display documents.
Introduction Part 2 - Coggle Diagram
Introduction Part 2
-
Language Translation
A programming language must have a translator that accept other programs written in the language in question and that either execute them directly or transform them to a form suitable for execution
The interpreter
-
Interpretation is a one step
process, which both the program and the input are
provided to the interpreter and the output is obtained.
An interpreter can be view as a
simulator for a machine whose “machine language” is the
language being translated
The compiler
-
-
-
The target program is an assembly
language and must be translated by assembler into an object program and then linked with other object programs and loaded into appropriate memory location before it can be executed.
Translation Process
-
Runtime
environment
An interpreter usually maintain the runtime environment
internally as a a part of it management of the execution of the
program.
Compiler must maintain the runtime environment indirectly by
adding suitable operation to the target code.
Suitable memory space for program data is allocated and that
record the progress of the execution of the program
-
Language
design
-
-
Readability
It is a challenge of programming language design to
achieve the power, expressiveness &
comprehensibility that human readability requires
while at the same time retaining the precision and
simplicity that is needed for machine translation
Language Definition
-
Language Syntax
-
-
-
Represent only the surface structure
of a language and thus is only a small
part of a language definition
-
Compilation process
-
Pseudointerpreter: Execute the
program without producing a target program, but they process the entire source program before execution begin
-