SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Compiler ,Interpreter and Linker
By- Mrs Pooja Anurag Chouhan
Introduction
• Role of compiler
• Role of interpreter
• compiling and linking
Role of compiler
• A computer program which reads source code and outputs assembly
code or executable code is called compiler.
• A program that translates software written in source code into
instructions that a computer can understand Software used to
translate the text that a programmer writes into a format the CPU
can use.
• A piece of software that takes third-generation language code and
translates it into a specific assembly code. Compilers can be quite
complicated pieces of software.
Role of interpreter
• It translates a program line-by-line (statement-by-statement) and
carries out the specified actions in sequence. In contrast, an
assembler or compiler completely translates a program written in a
high-level language (the source program) into a machine-language
program (the object program) for later execution. Whereas a
compiled-program executes much faster than an interpreted-
program, an interpreter allows examination and modification of the
program while it is running (executing).
Pre-processing phase
• A C pre-processor is a program that accepts C code with pre-
processing statements and produces a pure form of C code that
contains no pre-processing statements (like #include).
Compilation
• The C compiler accepts a preprocessed output file from the
preprocessor and produces a special file called an object file. Object
file contains machine code generated from the program
Linking phase
• The link phase is implemented by the linker. The linker is a process
that accepts as input object files and libraries to produce the final
executable program.
The End…

More Related Content

PPT
Introduction to computer programming
PDF
Introduction to Firmware
PPTX
Lecture 05 Software Quality Management
PPT
Introduction Programming Languages
PPTX
Components of computer and software: Introduction
KEY
Evolution of Programming Languages
PPTX
Introduction to computer software
PPTX
Software programming and development
Introduction to computer programming
Introduction to Firmware
Lecture 05 Software Quality Management
Introduction Programming Languages
Components of computer and software: Introduction
Evolution of Programming Languages
Introduction to computer software
Software programming and development

What's hot (20)

KEY
Pivotal Tracker Overview
PPTX
computer languages
PDF
Input And Output Devices.pdf
PPTX
Programming Language Evolution
PPT
Basic fundamental Computer input/output Accessories
PPT
Hardware vs. Software Presentations
PPTX
Introduction to c programming
PDF
Computer programing 111 lecture 1
PPTX
Stlc ppt
PPTX
Software engineering quality assurance and testing
PDF
IOT BASED SMART AGRICULTURAL MONITORING SYSTEM
PDF
Deploy STM32 family on Zephyr - SFO17-102
PPTX
Introduction to computer programming
PPT
Device Drivers
PPTX
EVALUTION OF COMPUTER LANGAGES
PPTX
operating system module 2 presentation notes
PPT
Compilers and interpreters
PPTX
Introduction to programming
PPTX
Types of Programming Languages
Pivotal Tracker Overview
computer languages
Input And Output Devices.pdf
Programming Language Evolution
Basic fundamental Computer input/output Accessories
Hardware vs. Software Presentations
Introduction to c programming
Computer programing 111 lecture 1
Stlc ppt
Software engineering quality assurance and testing
IOT BASED SMART AGRICULTURAL MONITORING SYSTEM
Deploy STM32 family on Zephyr - SFO17-102
Introduction to computer programming
Device Drivers
EVALUTION OF COMPUTER LANGAGES
operating system module 2 presentation notes
Compilers and interpreters
Introduction to programming
Types of Programming Languages
Ad

Similar to Introduction to compiler interpreter (20)

DOCX
Compliers and interpreters
PPTX
COMPILER DESIGN OPTIONS
PDF
Language processing system.pdf
PPTX
Compiler Design Introduction With Design
PDF
Chapter1pdf__2021_11_23_10_53_20.pdf
PPTX
Compiler vs Interpreter-Compiler design ppt.
PPTX
Phases of Compiler.pptx
PPTX
Pros and cons of c as a compiler language
PPTX
Compiler vs interpreter
PDF
compilervsinterpreter-161008074915.pdf
PPTX
Compiler vs interpreter
DOCX
COMPILER DESIGN.docx
PDF
Introduction to compiler
PPTX
Operating-Systems-Device-Drivers-Translators-Linkers-and-Utility-Software.pptx
PPTX
Compiler design slide share
PPTX
Chapter 2 Program language translation.pptx
PPT
Introduction to compiler design and phases of compiler
PPTX
PCSG_Computer_Science_Unit_1_Lecture_2.pptx
PDF
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
PPTX
Compiler an overview
Compliers and interpreters
COMPILER DESIGN OPTIONS
Language processing system.pdf
Compiler Design Introduction With Design
Chapter1pdf__2021_11_23_10_53_20.pdf
Compiler vs Interpreter-Compiler design ppt.
Phases of Compiler.pptx
Pros and cons of c as a compiler language
Compiler vs interpreter
compilervsinterpreter-161008074915.pdf
Compiler vs interpreter
COMPILER DESIGN.docx
Introduction to compiler
Operating-Systems-Device-Drivers-Translators-Linkers-and-Utility-Software.pptx
Compiler design slide share
Chapter 2 Program language translation.pptx
Introduction to compiler design and phases of compiler
PCSG_Computer_Science_Unit_1_Lecture_2.pptx
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
Compiler an overview
Ad

More from poojapainter (9)

PPTX
Android the new Mobile Technoogy
PPT
Android layouts
PPTX
Anatomy of android aplication
PPTX
Overview of c
PPTX
Android architecture
PPTX
Android the new Mobile Technoogy
PPT
Applets
PPTX
Android the new Technology for mobile
PPTX
Green i t
Android the new Mobile Technoogy
Android layouts
Anatomy of android aplication
Overview of c
Android architecture
Android the new Mobile Technoogy
Applets
Android the new Technology for mobile
Green i t

Recently uploaded (20)

PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
GDM (1) (1).pptx small presentation for students
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study
Complications of Minimal Access Surgery at WLH
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Weekly quiz Compilation Jan -July 25.pdf
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
Final Presentation General Medicine 03-08-2024.pptx
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

Introduction to compiler interpreter

  • 1. Compiler ,Interpreter and Linker By- Mrs Pooja Anurag Chouhan
  • 2. Introduction • Role of compiler • Role of interpreter • compiling and linking
  • 3. Role of compiler • A computer program which reads source code and outputs assembly code or executable code is called compiler. • A program that translates software written in source code into instructions that a computer can understand Software used to translate the text that a programmer writes into a format the CPU can use. • A piece of software that takes third-generation language code and translates it into a specific assembly code. Compilers can be quite complicated pieces of software.
  • 4. Role of interpreter • It translates a program line-by-line (statement-by-statement) and carries out the specified actions in sequence. In contrast, an assembler or compiler completely translates a program written in a high-level language (the source program) into a machine-language program (the object program) for later execution. Whereas a compiled-program executes much faster than an interpreted- program, an interpreter allows examination and modification of the program while it is running (executing).
  • 5. Pre-processing phase • A C pre-processor is a program that accepts C code with pre- processing statements and produces a pure form of C code that contains no pre-processing statements (like #include).
  • 6. Compilation • The C compiler accepts a preprocessed output file from the preprocessor and produces a special file called an object file. Object file contains machine code generated from the program
  • 7. Linking phase • The link phase is implemented by the linker. The linker is a process that accepts as input object files and libraries to produce the final executable program.