SlideShare uma empresa Scribd logo
1 de 24
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!!!!!!!

Mais conteúdo relacionado

Mais procurados (20)

Unit 4 sp macro
Unit 4 sp macroUnit 4 sp macro
Unit 4 sp macro
 
Language processing activity
Language processing activityLanguage processing activity
Language processing activity
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
Assemblers
AssemblersAssemblers
Assemblers
 
Software tools
Software toolsSoftware tools
Software tools
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Loaders
LoadersLoaders
Loaders
 
System Programming Overview
System Programming OverviewSystem Programming Overview
System Programming Overview
 
Linking in MS-Dos System
Linking in MS-Dos SystemLinking in MS-Dos System
Linking in MS-Dos System
 
Interactive debugging system
Interactive debugging systemInteractive debugging system
Interactive debugging system
 
Loader
LoaderLoader
Loader
 
Loaders
LoadersLoaders
Loaders
 
Bootstrapping in Compiler
Bootstrapping in CompilerBootstrapping in Compiler
Bootstrapping in Compiler
 
Life cycle of a computer program
Life cycle of a computer programLife cycle of a computer program
Life cycle of a computer program
 
Two pass Assembler
Two pass AssemblerTwo pass Assembler
Two pass Assembler
 
Assembler
AssemblerAssembler
Assembler
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and Lexeme
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 

Destaque

30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-pptraj732723
 
Computer organization memory hierarchy
Computer organization memory hierarchyComputer organization memory hierarchy
Computer organization memory hierarchyAJAL A J
 
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 connectorschrispaul8676
 

Destaque (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
 

Semelhante a Loader and Its types

linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler DesignAbhishekKumar117405
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfSATHYABAMAMADHANKUMA
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1Hitesh Mohapatra
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfhakilic1
 
Disadvantages Of Robotium
Disadvantages Of RobotiumDisadvantages Of Robotium
Disadvantages Of RobotiumSusan Tullis
 
loaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggyloaders-and-linkers.pdfhhhhhccftyghgfggy
loaders-and-linkers.pdfhhhhhccftyghgfggyrahulyadav957181
 
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 Linkerskunj 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
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit ISaranya1702
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation filejithujithin657
 
System software module 3 presentation file
System software module 3 presentation fileSystem software module 3 presentation file
System software module 3 presentation filejithujithin657
 

Semelhante a 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
 
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 -
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit I
 
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
 

Último

Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 

Último (20)

Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 

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!!!!!!!