SlideShare uma empresa Scribd logo
1 de 15
Language Processor




                     1
Language Processor
• A program that performs tasks, such as
  translating and interpreting, required for
  processing a specified programming language




                                                2
Eidtor
• Provides facility to write, store and manage
  code.
• Provides other tools for programming like
  compiler, debugger, linker etc.




                                                 3
Compiler
• Checks the code line by line to find syntax
  errors.
• If code is error free translate program in to
  machine language(object code).
• Object code is machine dependent.




                                                  4
Interpreter
• Interpret one instruction at a time.
• It checks, translate and execute the instruction
• Does not produce object code.



     High level   input   Interpreter   output   Result of
                                                 program
     language
                                                 execution
     program



                                                             5
Assembler
 • Translates the assembly language program in to
   machine code.
 • It Reserves space for data
 • Replaces he mnemonic codes by machine code
 • Replaces symbolic addresses by numeric addresses
 • Determines machine representation of constants




                                                Machine language
  • Assembly       input   Assembler   output      program
language program
                                                             6
Linker
• Resolves the relative location
                                    Lib
  of instructions and data                Obj      Obj

• Links libraries with the object
  and put them together as                Linker


  executable.
                                    Lib   dll      exe




                                                     7
Loader
• Inbuilt component of OS.
• Loads program in to main memory and
  prepare them for execution
                   Debugger
• Used to find logical errors
• Allows you to stop program at any step of
  execution , check and change the values of
  different variables
                                               8
Macro processor
• The repeated code (for e.g., UDF) of program
  is controlled by macro processor.
• It referred each repeated set of code by a
  name, and replace set of code when that
  name occurs in a program.




                                                 9
Program Development cycle
• Define the problem
I.    Careful reading of the problem.
II. We are not focusing on solution part here.
● Analyze the problem
I. Determine all possible solutions and select
    the best from them.
II. We can break whole problem in to sub
    problems.
                                             10
Cont….
• Design the solution
I. Create an outline on how the program
    should execute.
II. Expand it in to steps (algorithm) which
    describe the order of tasks to be carried out
• Code the program
I. Begins only after we have clear idea about
    algorithm of solution.
II. We can use appropriate language and edit or
    to write the code
                                                11
Cont..

• Compilation of code
I. Find the syntax and semantic errors.
II. Compiler or Interpreters of corresponding
     language can be used.
III. If error occurs, we need to change the code
     to solve errors.
IV. After successful compilation, object code is
     generated that a machine can understand
                                                   12
Cont..
• Linking of object code
I. Linker links the libraries and object code then
    puts all objects in to correct order in the
    executable.
II. If error occurs during linking, it might be a
    problem in writing code of linking.
• Loading of program
I. Loader loads the program in to main memory
    and control is passed to processor.

                                                     13
ii. Loading includes reading an executable
     ,checking permission , initializing registers
• Program execution and testing
I. Execution of program is done by processor.
II. Debugger can be used to trace the error
III. We verify the output. If the desired output is
     not achieved, we need to revice the whole
     process.
                                                  14
Problem


           Analysis

          Algorithm
           design

            Coding
                        Error

Library   Compilation

                          Error
            Linking


           Loading


           Execution
                                Error
                                        15
            result

Mais conteúdo relacionado

Mais procurados

Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
Introduction to loaders
Introduction to loadersIntroduction to loaders
Introduction to loaders
Tech_MX
 

Mais procurados (20)

Compiler Construction
Compiler ConstructionCompiler Construction
Compiler Construction
 
Unit 3
Unit 3Unit 3
Unit 3
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assembler
 
Loaders
LoadersLoaders
Loaders
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Compilers
CompilersCompilers
Compilers
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
 
Language processors
Language processorsLanguage processors
Language processors
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Types of system software
Types of system softwareTypes of system software
Types of system software
 
Introduction to loaders
Introduction to loadersIntroduction to loaders
Introduction to loaders
 
Compiler Construction introduction
Compiler Construction introductionCompiler Construction introduction
Compiler Construction introduction
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
Program development cyle
Program development cyleProgram development cyle
Program development cyle
 
Types of Programming Errors
Types of Programming ErrorsTypes of Programming Errors
Types of Programming Errors
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 

Destaque

System Programming Unit II
System Programming Unit IISystem Programming Unit II
System Programming Unit II
Manoj Patil
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
Manoj Patil
 
Programming languages
Programming languagesProgramming languages
Programming languages
Akash Varaiya
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
Akshay Kurup
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
Nikhi Jain
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
Vaibhav Bajaj
 

Destaque (15)

Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Toy compiler
Toy compilerToy compiler
Toy compiler
 
System Programming Unit II
System Programming Unit IISystem Programming Unit II
System Programming Unit II
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
System Programming Overview
System Programming OverviewSystem Programming Overview
System Programming Overview
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Operating system and its function
Operating system and its functionOperating system and its function
Operating system and its function
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Presentation on operating system
 Presentation on operating system Presentation on operating system
Presentation on operating system
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 

Semelhante a Language processor

Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
RakibRahman19
 
Compiler Construction Lecture One .pptx
Compiler Construction Lecture One  .pptxCompiler Construction Lecture One  .pptx
Compiler Construction Lecture One .pptx
انشال عارف
 

Semelhante a Language processor (20)

Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
Assmbly language mcqs
Assmbly language mcqsAssmbly language mcqs
Assmbly language mcqs
 
E.s unit 6
E.s unit 6E.s unit 6
E.s unit 6
 
C programming
C programmingC programming
C programming
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Chap01-Intro.ppt
Chap01-Intro.pptChap01-Intro.ppt
Chap01-Intro.ppt
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design Basics
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design Basics
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer program
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Code learning
Code learningCode learning
Code learning
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Compiler Construction Lecture One .pptx
Compiler Construction Lecture One  .pptxCompiler Construction Lecture One  .pptx
Compiler Construction Lecture One .pptx
 
Week 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdfWeek 08_Basics of Compiler Construction.pdf
Week 08_Basics of Compiler Construction.pdf
 
Compiler Design Introduction
Compiler Design Introduction Compiler Design Introduction
Compiler Design Introduction
 

Mais de Abha Damani (20)

Unit2
Unit2Unit2
Unit2
 
Unit6
Unit6Unit6
Unit6
 
Unit5
Unit5Unit5
Unit5
 
Unit4
Unit4Unit4
Unit4
 
Unit3
Unit3Unit3
Unit3
 
Unit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programmingUnit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programming
 
Ch14
Ch14Ch14
Ch14
 
Ch12
Ch12Ch12
Ch12
 
Ch11
Ch11Ch11
Ch11
 
Ch10
Ch10Ch10
Ch10
 
Ch08
Ch08Ch08
Ch08
 
Ch01 enterprise
Ch01 enterpriseCh01 enterprise
Ch01 enterprise
 
3 data mgmt
3 data mgmt3 data mgmt
3 data mgmt
 
2 it supp_sys
2 it supp_sys2 it supp_sys
2 it supp_sys
 
1 org.perf it supp_appl
1 org.perf it supp_appl1 org.perf it supp_appl
1 org.perf it supp_appl
 
Managing and securing the enterprise
Managing and securing the enterpriseManaging and securing the enterprise
Managing and securing the enterprise
 
Ch6
Ch6Ch6
Ch6
 
Unit2
Unit2Unit2
Unit2
 
Unit 3
Unit 3Unit 3
Unit 3
 
Unit 4
Unit 4Unit 4
Unit 4
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Language processor

  • 2. Language Processor • A program that performs tasks, such as translating and interpreting, required for processing a specified programming language 2
  • 3. Eidtor • Provides facility to write, store and manage code. • Provides other tools for programming like compiler, debugger, linker etc. 3
  • 4. Compiler • Checks the code line by line to find syntax errors. • If code is error free translate program in to machine language(object code). • Object code is machine dependent. 4
  • 5. Interpreter • Interpret one instruction at a time. • It checks, translate and execute the instruction • Does not produce object code. High level input Interpreter output Result of program language execution program 5
  • 6. Assembler • Translates the assembly language program in to machine code. • It Reserves space for data • Replaces he mnemonic codes by machine code • Replaces symbolic addresses by numeric addresses • Determines machine representation of constants Machine language • Assembly input Assembler output program language program 6
  • 7. Linker • Resolves the relative location Lib of instructions and data Obj Obj • Links libraries with the object and put them together as Linker executable. Lib dll exe 7
  • 8. Loader • Inbuilt component of OS. • Loads program in to main memory and prepare them for execution Debugger • Used to find logical errors • Allows you to stop program at any step of execution , check and change the values of different variables 8
  • 9. Macro processor • The repeated code (for e.g., UDF) of program is controlled by macro processor. • It referred each repeated set of code by a name, and replace set of code when that name occurs in a program. 9
  • 10. Program Development cycle • Define the problem I. Careful reading of the problem. II. We are not focusing on solution part here. ● Analyze the problem I. Determine all possible solutions and select the best from them. II. We can break whole problem in to sub problems. 10
  • 11. Cont…. • Design the solution I. Create an outline on how the program should execute. II. Expand it in to steps (algorithm) which describe the order of tasks to be carried out • Code the program I. Begins only after we have clear idea about algorithm of solution. II. We can use appropriate language and edit or to write the code 11
  • 12. Cont.. • Compilation of code I. Find the syntax and semantic errors. II. Compiler or Interpreters of corresponding language can be used. III. If error occurs, we need to change the code to solve errors. IV. After successful compilation, object code is generated that a machine can understand 12
  • 13. Cont.. • Linking of object code I. Linker links the libraries and object code then puts all objects in to correct order in the executable. II. If error occurs during linking, it might be a problem in writing code of linking. • Loading of program I. Loader loads the program in to main memory and control is passed to processor. 13
  • 14. ii. Loading includes reading an executable ,checking permission , initializing registers • Program execution and testing I. Execution of program is done by processor. II. Debugger can be used to trace the error III. We verify the output. If the desired output is not achieved, we need to revice the whole process. 14
  • 15. Problem Analysis Algorithm design Coding Error Library Compilation Error Linking Loading Execution Error 15 result