SlideShare a Scribd company logo
Government Engineering
College - DAHOD
Computer Department
Loaders and its types
Presented by :-
• Dodiya Parth Jayeshbhai
(120180107049)
Guided by :-
• Miss Viral Bhabhor
Source
Program
Pre-processed
source code
Assembly
code
Object code
Executable code
Program stored in
secondary memory
as executable image
Process
Address
Space
Main Memory
Loader
Pre-processor
Compiler Assembler
Linker
C Program Building Process
LOADERS
o A loader is a system software program that performs the loading function.
o Loading is the process of placing the program into memory for execution.
o Loader is responsible for initiating the execution of the process.
Fundamental process of Loaders (Functions of Loaders)
 Allocation : the space for program is allocated in the main memory,
by calculating the size of the program.
 Linking - which combines two or more separate object programs and
supplies the necessary information.
 Relocation – modifies the object program so that it can be loaded at an
address different from the location originally specified.
 Loading – brings the object program into memory for execution.
How does loader gets loaded ?
Answer : Bootstrap Loader
A bootstrap loader is a computer program that loads the main operating
system or runtime environment for the computer after completion of self-
tests.
For Example ::::::::
Old generation’s Operating Systems
Types of Loaders
 Compile and go loader
 Absolute Loader
 Linking Loader
COMPILE-AND-GO LOADER
 In compile and go loader is a link editor/program loader in which
the assembler itself places the assembled instruction directly into the
designated memory locations for execution.
 The instruction are read line by line, its machine code is obtained and it is
directly put in the main memory at some known address.
 After completion of assembly process, it assigns the starting address of the
program to the location counter.
 Examples of compile-and-go systems are WATFOR, PL/C, and Dartmouth BASIC.
 The assembler is first executed and it, when it is finished, causes
a branch straight to the first instruction of the program.
 There is no stop between the compilation, link editing, loading, and execution
of the program.
 It is also called an assemble-and-go or a load-and-go system.
ADVANTAGES OF COMPILE-AND-GO LOADERS
 They are simple and easier to implement.
 No additional routines are required to load the
compiled code into the memory.
DISADVANTAGES OF COMPILE-AND-GO
LOADERS
 There is wastage in memory space due to the presence of the assembler.
 There is no production of .obj file, the source code is directly converted to
executable form. Hence even though there is no modification in the source
program it needs to be assembled and executed each time.
ABSOLUTE LOADERS
 In this scheme the assembler outputs the machine language translation of the
source program in almost the same form as in the “Compile and go” , except that
the data is punched on cards. Here it will directly placed in memory .
 The loader in turn simply accepts the machine language text and places it into
core at the location prescribed by the assembler.
MAIN
SQRT
Absolute
loader
SQRT
MAIN
the end of MAIN is overlap with the start of SQRT. It would then necessary to
assign SQRT to a new location by changing its START.
There are four functions involving in the Absolute loading
Allocation
Linking
Relocation
Loading
DIRECT-LINKING LOADERS
o A direct-linking loader is a relocatable loader.
o It has advantage of allowing programmer multiple
procedure segments and multiple data segments.
o Complete freedom in referencing data or instructions
contained in other segments, provides flexible intersegment
referencing.
o The assembler should give the following information to the loader:
1. The length of the object code segment.
2. A list of external symbols (could be used by other segments).
3. List of External symbols(The segment is using).
4. Information about address constants.
5. Machine code translation of the source program.
o The assembler generates following types of cards:
o ESD
o TXT
o RLD
o END
1. ESD -
External symbol dictionary contains information about all
symbols that are defined in the program but referenced
somewhere. It contains
· Reference no
· Symbol Name
· TYPE
· Relative Location
· Length
o The assembler generates following types of cards:
o ESD
o TXT
o RLD
o END
1. ESD -
External symbol dictionary contains information about all
symbols that are defined in the program but referenced
somewhere. It contains
· Reference no
· Symbol Name
· TYPE
· Relative Location
· Length
o TYPE:
SD - Segment Definition.
LD - Local Definition.
ER - External Reference.
2. TXT –
Text card contains actual object code.(translated
source code).
3. RLD –
Relocation and linkage directory contains
information about locations in the program whose
content depend on the address at which program is
placed.
o The RLD cards contains information:
· Location of the constant that need relocation
· By what it has to be changed
· The operation to be performed
oThe Format of RLD
· Reference No
· Symbol
· Flag
· Length
· Relative Location
4. END –
Indicates the end of the program and specifies
starting address for execution
DISADVANTAGE :
o Allocate, relocate, link, and load all the subroutines each time in order to execute a
program.
o Furthermore, even though loader program smaller than assembler, it absorb
considerable amount of memory.
ADVANTAGE :
o This type loader allows programmer multiple to use procedure segments and multiple
data segments.
 Two different process of loading:
 Blinder
 Module loader
 Blinder : It binds subroutines together, output text as a file or card deck.
 Module loader : The output file is ready to get loaded, called load module.
This module gets physically loaded into memory.
THANK YOU, FOR WATCHING!!!!!!!

More Related Content

What's hot

Two pass Assembler
Two pass AssemblerTwo pass Assembler
Two pass Assembler
Satyamevjayte Haxor
 
loaders and linkers
 loaders and linkers loaders and linkers
loaders and linkers
Temesgen Molla
 
Introduction to loaders
Introduction to loadersIntroduction to loaders
Introduction to loadersTech_MX
 
Unit 4 sp macro
Unit 4 sp macroUnit 4 sp macro
Unit 4 sp macro
Deepmala Sharma
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
Malek Sumaiya
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1Manoj Patil
 
Assemblers
AssemblersAssemblers
Assemblers
Dattatray Gandhmal
 
Chapter 1 2 - some size factors
Chapter 1   2 - some size factorsChapter 1   2 - some size factors
Chapter 1 2 - some size factors
NancyBeaulah_R
 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
Karthi Keyan
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
Hemant Sharma
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
 
Unit 3
Unit 3Unit 3
Unit 3
pm_ghate
 
Design of a two pass assembler
Design of a two pass assemblerDesign of a two pass assembler
Design of a two pass assembler
Dhananjaysinh Jhala
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
desta_gebre
 
Single Pass Assembler
Single Pass AssemblerSingle Pass Assembler
Single Pass Assembler
Satyamevjayte Haxor
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly languageAhmed M. Abed
 
Staffing level estimation
Staffing level estimation Staffing level estimation
Staffing level estimation
kavitha muneeshwaran
 
System software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSystem software - macro expansion,nested macro calls
System software - macro expansion,nested macro calls
SARASWATHI S
 

What's hot (20)

Two pass Assembler
Two pass AssemblerTwo pass Assembler
Two pass Assembler
 
loaders and linkers
 loaders and linkers loaders and linkers
loaders and linkers
 
Introduction to loaders
Introduction to loadersIntroduction to loaders
Introduction to loaders
 
Unit 4 sp macro
Unit 4 sp macroUnit 4 sp macro
Unit 4 sp macro
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Assembler
AssemblerAssembler
Assembler
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
Assemblers
AssemblersAssemblers
Assemblers
 
Chapter 1 2 - some size factors
Chapter 1   2 - some size factorsChapter 1   2 - some size factors
Chapter 1 2 - some size factors
 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Unit 3
Unit 3Unit 3
Unit 3
 
Design of a two pass assembler
Design of a two pass assemblerDesign of a two pass assembler
Design of a two pass assembler
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 
Single Pass Assembler
Single Pass AssemblerSingle Pass Assembler
Single Pass Assembler
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
Staffing level estimation
Staffing level estimation Staffing level estimation
Staffing level estimation
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
System software - macro expansion,nested macro calls
System software - macro expansion,nested macro callsSystem software - macro expansion,nested macro calls
System software - macro expansion,nested macro calls
 

Viewers also liked

30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt
raj732723
 
Computer organization memory hierarchy
Computer organization memory hierarchyComputer organization memory hierarchy
Computer organization memory hierarchy
AJAL A J
 
Windows 98
Windows 98Windows 98
Windows 98
School/ NFA Office
 
Bios ( Basic Input Output System )
Bios ( Basic Input Output System )Bios ( Basic Input Output System )
Bios ( Basic Input Output System )
Jesthine Nesshal
 
Ports and connectors
Ports and connectorsPorts and connectors
Ports and connectors
chrispaul8676
 

Viewers also liked (6)

30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt
 
Computer organization memory hierarchy
Computer organization memory hierarchyComputer organization memory hierarchy
Computer organization memory hierarchy
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Windows 98
Windows 98Windows 98
Windows 98
 
Bios ( Basic Input Output System )
Bios ( Basic Input Output System )Bios ( Basic Input Output System )
Bios ( Basic Input Output System )
 
Ports and connectors
Ports and connectorsPorts and connectors
Ports and connectors
 

Similar to Loader and Its types

Handout#12
Handout#12Handout#12
Handout#12
Sunita Milind Dol
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
AbhishekKumar117405
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdf
SATHYABAMAMADHANKUMA
 
module 4.docx
module 4.docxmodule 4.docx
module 4.docx
GOKULDEV20
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
Hitesh Mohapatra
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdf
hakilic1
 
Module-4 Program Design and Anyalysis.pdf
Module-4 Program Design and Anyalysis.pdfModule-4 Program Design and Anyalysis.pdf
Module-4 Program Design and Anyalysis.pdf
Sitamarhi Institute of Technology
 
Loader
LoaderLoader
Embedded C.pptx
Embedded C.pptxEmbedded C.pptx
Embedded C.pptx
MusthafaKadersha
 
Disadvantages Of Robotium
Disadvantages Of RobotiumDisadvantages Of Robotium
Disadvantages Of Robotium
Susan Tullis
 
Loader2
Loader2Loader2
Loader2
deepan62
 
loaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggyloaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggy
rahulyadav957181
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
Loaders and Linkers
Loaders and LinkersLoaders and Linkers
Loaders and Linkers
kunj desai
 
The role of the cpu in the operation
The role of the cpu in the operationThe role of the cpu in the operation
The role of the cpu in the operationmary_ramsay
 
C programming session9 -
C programming  session9 -C programming  session9 -
C programming session9 -
Keroles karam khalil
 
Unit-2.pptx
Unit-2.pptxUnit-2.pptx
Unit-2.pptx
sidhantkulkarni1
 
Org-&-Arch-2.ppt
Org-&-Arch-2.pptOrg-&-Arch-2.ppt
Org-&-Arch-2.ppt
MahmoudNazzal7
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation file
jithujithin657
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation file
jithujithin657
 

Similar to Loader and Its types (20)

Handout#12
Handout#12Handout#12
Handout#12
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdf
 
module 4.docx
module 4.docxmodule 4.docx
module 4.docx
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdf
 
Module-4 Program Design and Anyalysis.pdf
Module-4 Program Design and Anyalysis.pdfModule-4 Program Design and Anyalysis.pdf
Module-4 Program Design and Anyalysis.pdf
 
Loader
LoaderLoader
Loader
 
Embedded C.pptx
Embedded C.pptxEmbedded C.pptx
Embedded C.pptx
 
Disadvantages Of Robotium
Disadvantages Of RobotiumDisadvantages Of Robotium
Disadvantages Of Robotium
 
Loader2
Loader2Loader2
Loader2
 
loaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggyloaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggy
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
Loaders and Linkers
Loaders and LinkersLoaders and Linkers
Loaders and Linkers
 
The role of the cpu in the operation
The role of the cpu in the operationThe role of the cpu in the operation
The role of the cpu in the operation
 
C programming session9 -
C programming  session9 -C programming  session9 -
C programming session9 -
 
Unit-2.pptx
Unit-2.pptxUnit-2.pptx
Unit-2.pptx
 
Org-&-Arch-2.ppt
Org-&-Arch-2.pptOrg-&-Arch-2.ppt
Org-&-Arch-2.ppt
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation file
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation file
 

Recently uploaded

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 

Recently uploaded (20)

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 

Loader and Its types

  • 1. Government Engineering College - DAHOD Computer Department
  • 2. Loaders and its types Presented by :- • Dodiya Parth Jayeshbhai (120180107049) Guided by :- • Miss Viral Bhabhor
  • 3. Source Program Pre-processed source code Assembly code Object code Executable code Program stored in secondary memory as executable image Process Address Space Main Memory Loader Pre-processor Compiler Assembler Linker C Program Building Process
  • 4. LOADERS o A loader is a system software program that performs the loading function. o Loading is the process of placing the program into memory for execution. o Loader is responsible for initiating the execution of the process.
  • 5. Fundamental process of Loaders (Functions of Loaders)  Allocation : the space for program is allocated in the main memory, by calculating the size of the program.  Linking - which combines two or more separate object programs and supplies the necessary information.  Relocation – modifies the object program so that it can be loaded at an address different from the location originally specified.  Loading – brings the object program into memory for execution.
  • 6. How does loader gets loaded ?
  • 7. Answer : Bootstrap Loader A bootstrap loader is a computer program that loads the main operating system or runtime environment for the computer after completion of self- tests. For Example :::::::: Old generation’s Operating Systems
  • 8. Types of Loaders  Compile and go loader  Absolute Loader  Linking Loader
  • 9. COMPILE-AND-GO LOADER  In compile and go loader is a link editor/program loader in which the assembler itself places the assembled instruction directly into the designated memory locations for execution.  The instruction are read line by line, its machine code is obtained and it is directly put in the main memory at some known address.  After completion of assembly process, it assigns the starting address of the program to the location counter.  Examples of compile-and-go systems are WATFOR, PL/C, and Dartmouth BASIC.
  • 10.  The assembler is first executed and it, when it is finished, causes a branch straight to the first instruction of the program.  There is no stop between the compilation, link editing, loading, and execution of the program.  It is also called an assemble-and-go or a load-and-go system.
  • 11. ADVANTAGES OF COMPILE-AND-GO LOADERS  They are simple and easier to implement.  No additional routines are required to load the compiled code into the memory.
  • 12. DISADVANTAGES OF COMPILE-AND-GO LOADERS  There is wastage in memory space due to the presence of the assembler.  There is no production of .obj file, the source code is directly converted to executable form. Hence even though there is no modification in the source program it needs to be assembled and executed each time.
  • 13. ABSOLUTE LOADERS  In this scheme the assembler outputs the machine language translation of the source program in almost the same form as in the “Compile and go” , except that the data is punched on cards. Here it will directly placed in memory .  The loader in turn simply accepts the machine language text and places it into core at the location prescribed by the assembler.
  • 15. the end of MAIN is overlap with the start of SQRT. It would then necessary to assign SQRT to a new location by changing its START. There are four functions involving in the Absolute loading Allocation Linking Relocation Loading
  • 16. DIRECT-LINKING LOADERS o A direct-linking loader is a relocatable loader. o It has advantage of allowing programmer multiple procedure segments and multiple data segments. o Complete freedom in referencing data or instructions contained in other segments, provides flexible intersegment referencing.
  • 17. o The assembler should give the following information to the loader: 1. The length of the object code segment. 2. A list of external symbols (could be used by other segments). 3. List of External symbols(The segment is using). 4. Information about address constants. 5. Machine code translation of the source program.
  • 18. o The assembler generates following types of cards: o ESD o TXT o RLD o END 1. ESD - External symbol dictionary contains information about all symbols that are defined in the program but referenced somewhere. It contains · Reference no · Symbol Name · TYPE · Relative Location · Length
  • 19. o The assembler generates following types of cards: o ESD o TXT o RLD o END 1. ESD - External symbol dictionary contains information about all symbols that are defined in the program but referenced somewhere. It contains · Reference no · Symbol Name · TYPE · Relative Location · Length
  • 20. o TYPE: SD - Segment Definition. LD - Local Definition. ER - External Reference. 2. TXT – Text card contains actual object code.(translated source code). 3. RLD – Relocation and linkage directory contains information about locations in the program whose content depend on the address at which program is placed.
  • 21. o The RLD cards contains information: · Location of the constant that need relocation · By what it has to be changed · The operation to be performed oThe Format of RLD · Reference No · Symbol · Flag · Length · Relative Location 4. END – Indicates the end of the program and specifies starting address for execution
  • 22. DISADVANTAGE : o Allocate, relocate, link, and load all the subroutines each time in order to execute a program. o Furthermore, even though loader program smaller than assembler, it absorb considerable amount of memory. ADVANTAGE : o This type loader allows programmer multiple to use procedure segments and multiple data segments.
  • 23.  Two different process of loading:  Blinder  Module loader  Blinder : It binds subroutines together, output text as a file or card deck.  Module loader : The output file is ready to get loaded, called load module. This module gets physically loaded into memory.
  • 24. THANK YOU, FOR WATCHING!!!!!!!