SlideShare a Scribd company logo
1 of 11
+
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

What's hot

Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / TranslatorsProject Student
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Compiler Design
Compiler DesignCompiler Design
Compiler DesignMir Majid
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programmingMukesh Tekwani
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language TranslatorRanjeet Kumar
 
Unit1 principle of programming language
Unit1 principle of programming languageUnit1 principle of programming language
Unit1 principle of programming languageVasavi College of Engg
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language adnan usmani
 
Programming language
Programming languageProgramming language
Programming languageRajThakuri
 
computer languages
computer languagescomputer languages
computer languagesRajendran
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginnersClement Levallois
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 

What's hot (20)

Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / Translators
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Interpreter
InterpreterInterpreter
Interpreter
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
 
Unit1 principle of programming language
Unit1 principle of programming languageUnit1 principle of programming language
Unit1 principle of programming language
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
Programming language
Programming languageProgramming language
Programming language
 
Interpreter
InterpreterInterpreter
Interpreter
 
Programming
ProgrammingProgramming
Programming
 
computer languages
computer languagescomputer languages
computer languages
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Computer
ComputerComputer
Computer
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Ide description
Ide descriptionIde description
Ide description
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 

Similar to Language Translator ( Compiler)

Language translator
Language translatorLanguage translator
Language translatorasmakh89
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overviewamudha arul
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresNisarg Amin
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languagesraksharao
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdfRakibRahman19
 
Session01 basics programming
Session01 basics programmingSession01 basics programming
Session01 basics programmingHarithaRanasinghe
 
Compiler Design Introduction
Compiler Design Introduction Compiler Design Introduction
Compiler Design Introduction Thapar Institute
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSsonalikharade3
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to CompilersAkhil Kaushik
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages BakhatAli3
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Computer languages
Computer languagesComputer languages
Computer languagesPrince Arsal
 

Similar to Language Translator ( Compiler) (20)

Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Language translator
Language translatorLanguage translator
Language translator
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overview
 
Programming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwaresProgramming languages,compiler,interpreter,softwares
Programming languages,compiler,interpreter,softwares
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Session01 basics programming
Session01 basics programmingSession01 basics programming
Session01 basics programming
 
Computer language
Computer languageComputer language
Computer language
 
Compiler Design Introduction
Compiler Design Introduction Compiler Design Introduction
Compiler Design Introduction
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
Assembler
AssemblerAssembler
Assembler
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.pdf
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
COMPILER DESIGN PPTS.pptx
COMPILER DESIGN PPTS.pptxCOMPILER DESIGN PPTS.pptx
COMPILER DESIGN PPTS.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 

More from Nazmul Hyder

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

More from Nazmul Hyder (10)

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

Recently uploaded

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

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