SlideShare a Scribd company logo
7
Most read
9
Most read
11
Most read
Compiler,Interpreter,Linker,Loader
Regardless of what language you use, you
eventually need to convert your program
into a language that the computer can
understand
Two ways for doing that:
compile the program or
interpret the program
A compiler is a computer program that translates a
program in a source language into an equivalent program
in a target language.
or
Compilers: Translate a source (human-writable) program
to an executable (machine-readable) program
Source code Compiler Executable
Input data Executable Output data
Translate the entire program.
Convert the entire program to machine code, when
the syntax errors are removed then converted into the
object code
Requires more main memory
Neither source nor the compiler are required for
execution.
Slow for debugging and testing.
Execution time is less.
Security of source code .
Interpreter is a program that executes instructions written
in a high-level language
or
Interpreters: Convert a source program and execute it at
the same time.
Source code
Input data
Output dataInterpreter
Translate the program line by line.
 each time the program is executed ,every line is
checked for syntax error & then converted to
equivalent machine code directly.
Requires less main memory
Source program and the interpreter are required for
execution.
Good for fast debugging and testing.
Execution time is more.
 No Security of source code .
Source
File
Source
File
Source
File
Compiler
(Assembler)
Compiler
(Assembler)
Compiler
(Assembler)
Object Code
File
Object Code
File
Object Code
File
LINKER
Object Code
File
Object Code
File
Object Code
File
LOADER
Main Memory
Executable File / Load
Module
Execution
Object Code
Libraries
A program that takes as input the object
files of one or more separately compiled
program modules, and links them together
into a complete executable program,
resolving reference from one module to
another.
A program that takes an input an executable
program, loads it into main memory, and causes
execution to being by loading the correct starting
address into the computer register.
When the program finished, control must
somehow be returned to the operating system.
A single object file might contain machine code
for only one procedure or a set of procedures.
An executable file must contain all the machine
code needed for a particular program; it must
contain the address of the first instruction to be
executed.
I. Absolute loader: absolute loader is a primitive type
of loader which does only the loading function. It
does not perform linking and program relocation.
II. Bootstrap loader: when the computer is turned on
absolute loader is executed. this loader is responsible
for loading the operating system and transferring
control to it. This loader is present in the ROM area
of main memory.
III. Relocateabel loader: this loader is responsible for
relocation and loading.
I. Linking loader: this linker performs all the linking and
relocation operations and load the linked program
directly into the main memory.
II. Linkage editor: this linker produces a linked version of
the program called as a load module or an executable
image.
III. Dynamic linker: this. Scheme postpone the linking
function until execution time. Any subroutine is loaded
and linked to the rest of program when it is first called.
What is software?
Computer Instructions or data, anything that can
be stored electronically is Software.
Types of Software
System Software
Application Software
Utility Software
SOFTWARE
APPLICATION
SOFTWARE
SYSTEM
SOFTWARE
UTILITY
SOFTWARE
System Software includes the Operating System and all the
utilities that enable the computer to function.
System software is a term referring to any computer software
which manages and controls the hardware so that application
software can perform a task.
Example:
Operating Systems, Compiler, Loader, Linker, Interpreter.
This is a general purpose program or acollection of
program written by the user to solve a particular
problem.
Application Software includes programs that do real work
for user.
Example:
Payroll systems, Inventory Control, Manage student
database, Word Processor, Spreadsheet and Database
Management System etc.,
these are readymade routines that are incorporated
into the computer utility software are generally
called as application oriented readymade system
programs
Example:
Soundblaster , sidekick etc.

More Related Content

PPTX
Ch 4 linker loader
PPTX
Single pass assembler
PPTX
Direct linking loaders
PDF
Unit 3
PPTX
Single Pass Assembler
PPTX
System programming
PPTX
Introduction to loaders
PPTX
Linker and Loader
Ch 4 linker loader
Single pass assembler
Direct linking loaders
Unit 3
Single Pass Assembler
System programming
Introduction to loaders
Linker and Loader

What's hot (20)

PPTX
Life cycle of a computer program
PPTX
Phases of Compiler
PPTX
Phases of compiler
PPTX
Assemblers
PDF
Introduction to systems programming
PPTX
Introduction to system programming
PPTX
Macro Processor
PPTX
unit testing and debugging
PPTX
Unit 4 sp macro
PPTX
Linking in MS-Dos System
PPTX
A presentation on software crisis
PPTX
Design notation
PPTX
Peephole Optimization
PPTX
Fundamentals of Language Processing
PPTX
COCOMO (Software Engineering)
PPTX
Procedural programming
PPTX
File Management in Operating System
PPTX
source code metrics and other maintenance tools and techniques
PPTX
Timing and control
PPTX
System programming vs application programming
Life cycle of a computer program
Phases of Compiler
Phases of compiler
Assemblers
Introduction to systems programming
Introduction to system programming
Macro Processor
unit testing and debugging
Unit 4 sp macro
Linking in MS-Dos System
A presentation on software crisis
Design notation
Peephole Optimization
Fundamentals of Language Processing
COCOMO (Software Engineering)
Procedural programming
File Management in Operating System
source code metrics and other maintenance tools and techniques
Timing and control
System programming vs application programming
Ad

Similar to Linker and Loader Explained (20)

PPTX
linkerloader ss-2.pptx
PDF
Hm system programming class 1
PPT
System software-loaders
DOCX
Loaders
PPTX
Types of system software
PPTX
Introduction.pptx
PPTX
Loader and Its types
PPTX
linker & loader presentation in Compiler Design
PPT
Overall 23 11_2007_hdp
PPTX
System software module 1 presentation file
PDF
loaders and linkers
PPTX
Lec 2 Compiler, Interpreter, linker, loader.pptx
PDF
Namdeo Kapale Sanjivani College of Engineering KopaCFP_UNIT1_24-25.pdf
PPTX
Loaders ( system programming )
PPT
Loaders and Linkers
PPTX
PPT
Computer software 2
PPTX
Operating-Systems-Device-Drivers-Translators-Linkers-and-Utility-Software.pptx
PPTX
Assembly-and-Linking-From-Instructions-to-Execution.pptx
linkerloader ss-2.pptx
Hm system programming class 1
System software-loaders
Loaders
Types of system software
Introduction.pptx
Loader and Its types
linker & loader presentation in Compiler Design
Overall 23 11_2007_hdp
System software module 1 presentation file
loaders and linkers
Lec 2 Compiler, Interpreter, linker, loader.pptx
Namdeo Kapale Sanjivani College of Engineering KopaCFP_UNIT1_24-25.pdf
Loaders ( system programming )
Loaders and Linkers
Computer software 2
Operating-Systems-Device-Drivers-Translators-Linkers-and-Utility-Software.pptx
Assembly-and-Linking-From-Instructions-to-Execution.pptx
Ad

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Presentation on HIE in infants and its manifestations
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Institutional Correction lecture only . . .
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
2.FourierTransform-ShortQuestionswithAnswers.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Final Presentation General Medicine 03-08-2024.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
GDM (1) (1).pptx small presentation for students
Microbial disease of the cardiovascular and lymphatic systems
Chinmaya Tiranga quiz Grand Finale.pdf
Classroom Observation Tools for Teachers
Supply Chain Operations Speaking Notes -ICLT Program
Presentation on HIE in infants and its manifestations
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O7-L3 Supply Chain Operations - ICLT Program
human mycosis Human fungal infections are called human mycosis..pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Institutional Correction lecture only . . .
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Types and Its function , kingdom of life
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3

Linker and Loader Explained

  • 2. Regardless of what language you use, you eventually need to convert your program into a language that the computer can understand Two ways for doing that: compile the program or interpret the program
  • 3. A compiler is a computer program that translates a program in a source language into an equivalent program in a target language. or Compilers: Translate a source (human-writable) program to an executable (machine-readable) program Source code Compiler Executable Input data Executable Output data
  • 4. Translate the entire program. Convert the entire program to machine code, when the syntax errors are removed then converted into the object code Requires more main memory Neither source nor the compiler are required for execution. Slow for debugging and testing. Execution time is less. Security of source code .
  • 5. Interpreter is a program that executes instructions written in a high-level language or Interpreters: Convert a source program and execute it at the same time. Source code Input data Output dataInterpreter
  • 6. Translate the program line by line.  each time the program is executed ,every line is checked for syntax error & then converted to equivalent machine code directly. Requires less main memory Source program and the interpreter are required for execution. Good for fast debugging and testing. Execution time is more.  No Security of source code .
  • 7. Source File Source File Source File Compiler (Assembler) Compiler (Assembler) Compiler (Assembler) Object Code File Object Code File Object Code File LINKER Object Code File Object Code File Object Code File LOADER Main Memory Executable File / Load Module Execution Object Code Libraries
  • 8. A program that takes as input the object files of one or more separately compiled program modules, and links them together into a complete executable program, resolving reference from one module to another.
  • 9. A program that takes an input an executable program, loads it into main memory, and causes execution to being by loading the correct starting address into the computer register. When the program finished, control must somehow be returned to the operating system.
  • 10. A single object file might contain machine code for only one procedure or a set of procedures. An executable file must contain all the machine code needed for a particular program; it must contain the address of the first instruction to be executed.
  • 11. I. Absolute loader: absolute loader is a primitive type of loader which does only the loading function. It does not perform linking and program relocation. II. Bootstrap loader: when the computer is turned on absolute loader is executed. this loader is responsible for loading the operating system and transferring control to it. This loader is present in the ROM area of main memory. III. Relocateabel loader: this loader is responsible for relocation and loading.
  • 12. I. Linking loader: this linker performs all the linking and relocation operations and load the linked program directly into the main memory. II. Linkage editor: this linker produces a linked version of the program called as a load module or an executable image. III. Dynamic linker: this. Scheme postpone the linking function until execution time. Any subroutine is loaded and linked to the rest of program when it is first called.
  • 13. What is software? Computer Instructions or data, anything that can be stored electronically is Software. Types of Software System Software Application Software Utility Software
  • 15. System Software includes the Operating System and all the utilities that enable the computer to function. System software is a term referring to any computer software which manages and controls the hardware so that application software can perform a task. Example: Operating Systems, Compiler, Loader, Linker, Interpreter.
  • 16. This is a general purpose program or acollection of program written by the user to solve a particular problem. Application Software includes programs that do real work for user. Example: Payroll systems, Inventory Control, Manage student database, Word Processor, Spreadsheet and Database Management System etc.,
  • 17. these are readymade routines that are incorporated into the computer utility software are generally called as application oriented readymade system programs Example: Soundblaster , sidekick etc.