SlideShare a Scribd company logo
6
Most read
+
Topic : Language Translator
Nazmul Hyder
ID : 011 131 085
+
Lecture Overview :
ASSEMBLER
COMPILER
INTERPRETER
+
Any program that is not written in machine
language has to be translated in machine
language before it is executed by the
computer. The means used for translation
are themselves computer programs. There
are three types of translator programs i.e.
Assembler, Compilers and Interpreters.
+
ASSEMBLER :
 To convert the assembly language into machine code .
 Translate mnemonic operation codes to their machine
language .
 Assigning machine addresses to symbolic labels.
+
Assembler Directives :
• The assembler can also process assembler
directives.
• Assembler directives (or pseudo-
instructions) provide instructions to the
assembler itself. They are not translated into
machine instructions
• E.g.
• START (specify name and starting address for
the program).
• END (indicate the end of the source program and
(optionally) specify the first executable instruction
in the program)
+
Working of Assembler :
• Programmer write a program using a sequence of
assemble instructions.
• This sequence of assembler instructions, known as
the source code/source program, then specified to
the assembler program when that program is
started.
• It translates a source code into machine language.
• The output of the assembler program is called the
object code or object program.
+
COMPILER :
• A compiler is a computer program that transforms
source code written in a programming
language(source language) into another
computer language(target language) .
• Compiler:
o Checks syntax of program
o Checks at a time all the program
• Primary reason for compiling source code is to
create an executable program
• Examples of compiler based language:
• C, C++, JAVA

+
Jobs of compiler :
1.To translate HLL source program to
machine codes.
2. To trace variables in the program
3. To include linkage for subroutines.
4. To allocate memory for storage of
program and variables.
5. To generate error messages, if there
are errors in the program
+
INTERPRETER :
• A computer program that executes
instructions written in a programming
language and do not produces the executable
file.
• Interpreter:
o Checks the keywords of a program
o Taking one instruction at a time and convert it into machine
language before taking upon the next instruction.
• Examples of interpreter based language:
o PHP, JavaScript, BASIC
+ Advantage :
1. Good at locating errors in programs
2. Debugging is easier since the interpreter stops
when it encounters an error.
3. If an error is deducted there is no need to
retranslate the whole program
Disadvantage :
1. Rather slow.
2. No object code is produced, so a translation has to
be done every time the program is running.
3. For the program to run, the Interpreter must
be present
+
THANK YOU  

More Related Content

PPTX
Computer Language Translator
PDF
Compiler type
PPTX
Lexical Analysis - Compiler Design
PPTX
Programming Languages / Translators
PDF
Lexical Analysis - Compiler design
PDF
Lecture 01 introduction to compiler
PDF
loaders and linkers
PPSX
Type conversion
Computer Language Translator
Compiler type
Lexical Analysis - Compiler Design
Programming Languages / Translators
Lexical Analysis - Compiler design
Lecture 01 introduction to compiler
loaders and linkers
Type conversion

What's hot (20)

ODP
Introduction to Shell script
PPT
Compiler Design Basics
PPT
Introduction to Compiler Construction
PPTX
Compiler Design Unit 4
PPTX
Introduction to Compilers
PPT
Language translator
PPTX
The Phases of a Compiler
PPTX
CPU Scheduling in OS Presentation
PPT
1. over view and history of c
PPT
JAVA Polymorphism
PPTX
Input-Buffering
PPTX
Loops in C Programming Language
PPT
basics of compiler design
PPTX
3.5 equivalence of pushdown automata and cfl
PPT
Computer programming concepts
PPTX
Linker and Loader
PPTX
Programming Fundamentals
PPTX
Compiler Chapter 1
PPTX
PPTX
MACRO PROCESSOR
Introduction to Shell script
Compiler Design Basics
Introduction to Compiler Construction
Compiler Design Unit 4
Introduction to Compilers
Language translator
The Phases of a Compiler
CPU Scheduling in OS Presentation
1. over view and history of c
JAVA Polymorphism
Input-Buffering
Loops in C Programming Language
basics of compiler design
3.5 equivalence of pushdown automata and cfl
Computer programming concepts
Linker and Loader
Programming Fundamentals
Compiler Chapter 1
MACRO PROCESSOR
Ad

Similar to Language Translator ( Compiler) (20)

DOCX
COMPILER DESIGN.docx
PPTX
Compiler design slide share
PPT
La 5 Pl Translator
PPTX
Cf&oa
PDF
Programming languagues for mathematicans .pdf
PPTX
Compilers.pptx
PPTX
COMPILER DESIGN OPTIONS
PPTX
Computer languages
PPTX
Chapter 2 Program language translation.pptx
PPTX
Computer language
PDF
Chapter1.pdf
PPTX
Pros and cons of c as a compiler language
PPTX
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
PPTX
Language processor
PPTX
Computer basics
PPTX
Translators(Compiler, Assembler) and interpreter
PDF
Languages in computer
PPT
Introduction to compiler design and phases of compiler
PPTX
Programming Fundamental Slide No.1
PPTX
Agro informatics centre up State of Lec 6.pptx
COMPILER DESIGN.docx
Compiler design slide share
La 5 Pl Translator
Cf&oa
Programming languagues for mathematicans .pdf
Compilers.pptx
COMPILER DESIGN OPTIONS
Computer languages
Chapter 2 Program language translation.pptx
Computer language
Chapter1.pdf
Pros and cons of c as a compiler language
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
Language processor
Computer basics
Translators(Compiler, Assembler) and interpreter
Languages in computer
Introduction to compiler design and phases of compiler
Programming Fundamental Slide No.1
Agro informatics centre up State of Lec 6.pptx
Ad

More from Nazmul Hyder (10)

PPTX
Analysis of Tree in Computer Based Application
PDF
Classification by clustering
PPTX
Linux Shell Scripts and Shell Commands✌️
PPTX
Huffman coding
PPTX
Dataset Analysis using weka tools (pattern recognition)
PDF
ODOO documentation(e-commerce +accounting+purchase+inventory+invoice+HR+ POS)
PPTX
E-commerce (System Analysis and Design)
PPTX
Benchmark analysis (Online Shopping System)
PPTX
Online medicine store (using ODOO)
PPTX
Data analysis in artificial intelligence
Analysis of Tree in Computer Based Application
Classification by clustering
Linux Shell Scripts and Shell Commands✌️
Huffman coding
Dataset Analysis using weka tools (pattern recognition)
ODOO documentation(e-commerce +accounting+purchase+inventory+invoice+HR+ POS)
E-commerce (System Analysis and Design)
Benchmark analysis (Online Shopping System)
Online medicine store (using ODOO)
Data analysis in artificial intelligence

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Lesson notes of climatology university.
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
master seminar digital applications in india
PPTX
Institutional Correction lecture only . . .
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Cell Structure & Organelles in detailed.
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
Microbial diseases, their pathogenesis and prophylaxis
Lesson notes of climatology university.
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
TR - Agricultural Crops Production NC III.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
master seminar digital applications in india
Institutional Correction lecture only . . .
Supply Chain Operations Speaking Notes -ICLT Program
VCE English Exam - Section C Student Revision Booklet
Renaissance Architecture: A Journey from Faith to Humanism
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Cell Structure & Organelles in detailed.

Language Translator ( Compiler)

  • 1. + Topic : Language Translator Nazmul Hyder ID : 011 131 085
  • 3. + Any program that is not written in machine language has to be translated in machine language before it is executed by the computer. The means used for translation are themselves computer programs. There are three types of translator programs i.e. Assembler, Compilers and Interpreters.
  • 4. + ASSEMBLER :  To convert the assembly language into machine code .  Translate mnemonic operation codes to their machine language .  Assigning machine addresses to symbolic labels.
  • 5. + Assembler Directives : • The assembler can also process assembler directives. • Assembler directives (or pseudo- instructions) provide instructions to the assembler itself. They are not translated into machine instructions • E.g. • START (specify name and starting address for the program). • END (indicate the end of the source program and (optionally) specify the first executable instruction in the program)
  • 6. + Working of Assembler : • Programmer write a program using a sequence of assemble instructions. • This sequence of assembler instructions, known as the source code/source program, then specified to the assembler program when that program is started. • It translates a source code into machine language. • The output of the assembler program is called the object code or object program.
  • 7. + COMPILER : • A compiler is a computer program that transforms source code written in a programming language(source language) into another computer language(target language) . • Compiler: o Checks syntax of program o Checks at a time all the program • Primary reason for compiling source code is to create an executable program • Examples of compiler based language: • C, C++, JAVA 
  • 8. + Jobs of compiler : 1.To translate HLL source program to machine codes. 2. To trace variables in the program 3. To include linkage for subroutines. 4. To allocate memory for storage of program and variables. 5. To generate error messages, if there are errors in the program
  • 9. + INTERPRETER : • A computer program that executes instructions written in a programming language and do not produces the executable file. • Interpreter: o Checks the keywords of a program o Taking one instruction at a time and convert it into machine language before taking upon the next instruction. • Examples of interpreter based language: o PHP, JavaScript, BASIC
  • 10. + Advantage : 1. Good at locating errors in programs 2. Debugging is easier since the interpreter stops when it encounters an error. 3. If an error is deducted there is no need to retranslate the whole program Disadvantage : 1. Rather slow. 2. No object code is produced, so a translation has to be done every time the program is running. 3. For the program to run, the Interpreter must be present