Programming - Part2
Programming - Part2
to programming
concepts
Computer language translators
Done by: Ms. Mariem Khlifi
Year 7
Lesson
Learning
Outcomes
Be able to recognise the computer language translator
Be able to differentiate between assembler, compiler and
interpreter
Keywords
Assembler
Compiler
Interpreter
Recap
Recap
1. What is a Program?
A program is a set of instructions written and executed in a
specific sequence.
2. Name the five generations of computer language
a. 1GL: Machine Language b. 2GL: Assembly language
c. 3GL: High level language d. 4GL: Very high level language
e. 5GL: Artificial intelligence
3. Give three examples of programming language
Java , Python, C, C++, HTML, CSS, Assembly
Computer language Translators
• A computer language translator is defined as a computer program
that converts instructions written in a given language to another
language.
• The text that is translated is called the source code
• The language that the source code is translated int is called the
target language
• The product is called target code or object code
Assembler
The Assembler is a Software that converts an
assembly language code to machine code.
The assembler's job is to convert assembler or assembly
language code into machine code that the computer
can then read and execute.
During the compilation process, the assembler assembles
and converts assembly language source code into
object code.
Compiler
• A compiler is a computer program that translates computer code
written in one programming language (the source language) into
another language (the target language).
• compiler translate source code from a high-level programming
language to a low-level programming language (e.g. assembly
language, object code, or machine code) to create
an executable program
Interpreter
• An interpreter is a program that directly executes the
instructions in a high-level language, without converting
it into machine code
• The interpreter analyses and executes each line of
source code in succession, without looking at the entire
program
https://www.programiz.com/python-programming/online-com
piler/
Exit ticket
• https://quizizz.com/admin/quiz/start_new/5c3a1c4173cd4c001be2d
b9b?ctaSource=classic-mode&fromPage=admin-quizType-id-slug
Conclusion