SlideShare ist ein Scribd-Unternehmen logo
1 von 24
O r g a n i za t i o n n a m e
:: Prepared By ::
Adarsh Patel
:: Submit To ::
Prof. xyz
Overview
 Introduction of Loader
 Compile-Go Loader
 General Loader
 Absolute Loader
 Relocating Loader
 Practical Relocating Loader
 Linking Loader
 Linker Vs. Loader
Reference :: -System Programming by Srimanta Pal OXFORD Publication
-web.thu.edu.tw/ctyang/www/files/sp_chap3
2Loaders
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
3Loaders
 A loader is a system software program that performs the
loading function.
 Loading is the process of placing the program into memory
for execution.
 Loader is responsible for initiating the execution of the
process.
4Loaders
 Compile-Go Loader
 General Loader
 Absolute Loader
 Relocating Loader
 Practical Relocating Loader
 Linking Loader
5Loaders
 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.
6Loaders
 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.
7Loaders
 They are simple and easier to implement.
 No additional routines are required to load the compiled code
into the memory.
8Loaders
:: ::
 There is wastage in memory space due to the presence of the
assembler.
 There is no production of object 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.
9Loaders
:: ::
 In Compile-and-Go the outputting instruction and data are
assembled. In which assembler is placed in main memory that
results in wastage of memory.
 To overcome that we requires the addition of the new
program of the system, a loader.
 Generally the size of loader is less than that of assembler.
10Loaders
 Reassembly of program is not needed
 The translator of the source program produce compatible
object program files
 More memory is available to the user
11Loaders
:: ::
 The loader cannot handle different object Module Obtained
from different kinds of computers
:: ::
 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.
12Loaders
 The MAIN program is assigned to locations 100-247 and the
SQRT subroutine is assigned locations 400-477. if changes
were made to MAIN that increasing length to more than 300
bytes.
13Loaders
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
14Loaders
 Simple and efficient.
15Loaders
:: ::
 The programmer must specify to the assembler the address
where the program is to be loaded.
 If there are multiple subroutines , the programmer must
remember the address of each.
:: ::
 To avoid possible reassembling of all subroutines when a
single subroutine is changed and to perform the tasks of
allocation and linking for the programmer the relocating
loaders is introduced.
 The execution of the object program is done using any part of
the available & sufficient memory.
 The object program is loaded into memory wherever there
is room for it.
16Loaders
 The assembler assembles each procedures segment
independently and passes to loader the text and information
as to relocation and intersegment references.
 The assembler would also provide the loader with additional
information, such as the length of the entire program and the
length of the transfer vector.
17Loaders
 BINARY SYMBOLIC SUBROUTINE ( ) loader such as used in
the IBM 7094,IBM 1130,GE 635.
 The output of the relocating assembler using a BINARY
SYMBOLIC SUBROUTINE(BSS) scheme is the Object program
and information about all other program its references.
 The BSS loader allows many procedure segments but only
one data (common)segment.
 The BSS loader scheme is often used on computers with a
fixed-length direct address instruction format.
18Loaders
:: ::
 Avoids possible reassembling of all Subroutines when a single
Subroutine is changed
 Perform the tasks of allocation and linking for the programmer.
19Loaders
:: ::
 Difficult to implement
 Algorithm is depends on File structure of the object program.
 Slower than Absolute loader
:: ::
 In this type of loaders first load , links and then Relocates
segments.
 Complete freedom in referencing data or instructions
contained in other segments
 Perform all linking and relocation at load time.
 A linking loader is known as general relocatable loader or
direct-linking loader.
20Loaders
 PASS-ONE : accepts object file and produces Global external
symbol table (GEST) and copies of the object programs as O/P.
 PASS-TWO : object programs are loaded to the primary memory
after proper translation of address .
21Loaders
 One pass linking loader performs all operations that are
specified in a two-pass linking loaders
 It allows multiple procedure and data segment.
 It provides flexible inter-segment referencing and Accessing
ability, at same time independent translation of programs.
22Loaders
:: ::
 It is necessary for allocation, relocation, linking and loading.
 All the subroutine are required each time in order to execute
a program .
 It is time consuming.
:: ::
Linkers Loaders
Combine the target code with the code
of other programs and library routines
in order to generate a binary program.
Load executable code into the memory.
Carried out with the help of compiler Part of operating system
The execution of linking can be during
compilation or during execution of the
program
The loads the program into the
memory when it is scheduled for
execution.
23Loaders
 What is Loader
 Use of Loader
 Types of Loader
 Linkers vs. Loader
24Loaders
Reference :: -System Programming by Srimanta Pal OXFORD Publication
-web.thu.edu.tw/ctyang/www/files/sp_chap3

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit I
 
Language processing activity
Language processing activityLanguage processing activity
Language processing activity
 
MACRO PROCESSOR
MACRO PROCESSORMACRO PROCESSOR
MACRO PROCESSOR
 
System Programming Unit II
System Programming Unit IISystem Programming Unit II
System Programming Unit II
 
loaders and linkers
 loaders and linkers loaders and linkers
loaders and linkers
 
Loaders
LoadersLoaders
Loaders
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Unit 4 sp macro
Unit 4 sp macroUnit 4 sp macro
Unit 4 sp macro
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Assemblers
AssemblersAssemblers
Assemblers
 
Direct linking loader
Direct linking loaderDirect linking loader
Direct linking loader
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
Loader and Its types
Loader and Its typesLoader and Its types
Loader and Its types
 
Single Pass Assembler
Single Pass AssemblerSingle Pass Assembler
Single Pass Assembler
 
Linking in MS-Dos System
Linking in MS-Dos SystemLinking in MS-Dos System
Linking in MS-Dos System
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader Explained
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 

Ähnlich wie Loaders ( system programming )

linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler DesignAbhishekKumar117405
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1Hitesh Mohapatra
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfSATHYABAMAMADHANKUMA
 
Loaders and Linkers
Loaders and LinkersLoaders and Linkers
Loaders and Linkerskunj desai
 
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
 
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
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfhakilic1
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpretersshivasdhtsvmic
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding SchemeRajesh Piryani
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdfvino108206
 
Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsssuserf86fba
 

Ähnlich wie Loaders ( system programming ) (20)

linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
 
Handout#12
Handout#12Handout#12
Handout#12
 
linkerloader ss-2.pptx
linkerloader ss-2.pptxlinkerloader ss-2.pptx
linkerloader ss-2.pptx
 
Loaders
LoadersLoaders
Loaders
 
Loaders
LoadersLoaders
Loaders
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdf
 
Loaders and Linkers
Loaders and LinkersLoaders and Linkers
Loaders and Linkers
 
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
 
System software-loaders
System software-loadersSystem software-loaders
System software-loaders
 
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
 
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
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdf
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpreters
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding Scheme
 
CS8251_QB_answers.pdf
CS8251_QB_answers.pdfCS8251_QB_answers.pdf
CS8251_QB_answers.pdf
 
Introduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic conceptsIntroduction To C++ programming and its basic concepts
Introduction To C++ programming and its basic concepts
 
Linkers in compiler
Linkers in compilerLinkers in compiler
Linkers in compiler
 
Lect-01.ppt
Lect-01.pptLect-01.ppt
Lect-01.ppt
 

Mehr von Adarsh Patel

CMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signatureCMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signatureAdarsh Patel
 
jstl ( jsp standard tag library )
jstl ( jsp standard tag library )jstl ( jsp standard tag library )
jstl ( jsp standard tag library )Adarsh Patel
 
Non Linear Data Structures
Non Linear Data StructuresNon Linear Data Structures
Non Linear Data StructuresAdarsh Patel
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic Adarsh Patel
 
case study of curve fitting
case study of curve fittingcase study of curve fitting
case study of curve fittingAdarsh Patel
 
basics of virtual memory
basics of virtual memorybasics of virtual memory
basics of virtual memoryAdarsh Patel
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine designAdarsh Patel
 
projection of solid
projection of solidprojection of solid
projection of solidAdarsh Patel
 
basic electronics, Transmission lines, wave guides And Antenna fundamental
basic electronics, Transmission lines, wave guides And Antenna fundamentalbasic electronics, Transmission lines, wave guides And Antenna fundamental
basic electronics, Transmission lines, wave guides And Antenna fundamentalAdarsh Patel
 
Radioactive pollution
Radioactive pollutionRadioactive pollution
Radioactive pollutionAdarsh Patel
 
Perfect Bookreview - you can win
Perfect Bookreview - you can winPerfect Bookreview - you can win
Perfect Bookreview - you can winAdarsh Patel
 
mechanical engineering transmission of motion and power
 mechanical engineering transmission of motion and power mechanical engineering transmission of motion and power
mechanical engineering transmission of motion and powerAdarsh Patel
 

Mehr von Adarsh Patel (14)

CMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signatureCMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signature
 
4G 5G technology
4G 5G technology 4G 5G technology
4G 5G technology
 
jstl ( jsp standard tag library )
jstl ( jsp standard tag library )jstl ( jsp standard tag library )
jstl ( jsp standard tag library )
 
Non Linear Data Structures
Non Linear Data StructuresNon Linear Data Structures
Non Linear Data Structures
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic
 
case study of curve fitting
case study of curve fittingcase study of curve fitting
case study of curve fitting
 
basics of virtual memory
basics of virtual memorybasics of virtual memory
basics of virtual memory
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine design
 
projection of solid
projection of solidprojection of solid
projection of solid
 
basic electronics, Transmission lines, wave guides And Antenna fundamental
basic electronics, Transmission lines, wave guides And Antenna fundamentalbasic electronics, Transmission lines, wave guides And Antenna fundamental
basic electronics, Transmission lines, wave guides And Antenna fundamental
 
linear equations
linear equationslinear equations
linear equations
 
Radioactive pollution
Radioactive pollutionRadioactive pollution
Radioactive pollution
 
Perfect Bookreview - you can win
Perfect Bookreview - you can winPerfect Bookreview - you can win
Perfect Bookreview - you can win
 
mechanical engineering transmission of motion and power
 mechanical engineering transmission of motion and power mechanical engineering transmission of motion and power
mechanical engineering transmission of motion and power
 

Kürzlich hochgeladen

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 

Kürzlich hochgeladen (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 

Loaders ( system programming )

  • 1. O r g a n i za t i o n n a m e :: Prepared By :: Adarsh Patel :: Submit To :: Prof. xyz
  • 2. Overview  Introduction of Loader  Compile-Go Loader  General Loader  Absolute Loader  Relocating Loader  Practical Relocating Loader  Linking Loader  Linker Vs. Loader Reference :: -System Programming by Srimanta Pal OXFORD Publication -web.thu.edu.tw/ctyang/www/files/sp_chap3 2Loaders
  • 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 3Loaders
  • 4.  A loader is a system software program that performs the loading function.  Loading is the process of placing the program into memory for execution.  Loader is responsible for initiating the execution of the process. 4Loaders
  • 5.  Compile-Go Loader  General Loader  Absolute Loader  Relocating Loader  Practical Relocating Loader  Linking Loader 5Loaders
  • 6.  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. 6Loaders
  • 7.  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. 7Loaders
  • 8.  They are simple and easier to implement.  No additional routines are required to load the compiled code into the memory. 8Loaders :: ::
  • 9.  There is wastage in memory space due to the presence of the assembler.  There is no production of object 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. 9Loaders :: ::
  • 10.  In Compile-and-Go the outputting instruction and data are assembled. In which assembler is placed in main memory that results in wastage of memory.  To overcome that we requires the addition of the new program of the system, a loader.  Generally the size of loader is less than that of assembler. 10Loaders
  • 11.  Reassembly of program is not needed  The translator of the source program produce compatible object program files  More memory is available to the user 11Loaders :: ::  The loader cannot handle different object Module Obtained from different kinds of computers :: ::
  • 12.  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. 12Loaders
  • 13.  The MAIN program is assigned to locations 100-247 and the SQRT subroutine is assigned locations 400-477. if changes were made to MAIN that increasing length to more than 300 bytes. 13Loaders MAIN SQRT Absolute loader SQRT MAIN
  • 14.  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 14Loaders
  • 15.  Simple and efficient. 15Loaders :: ::  The programmer must specify to the assembler the address where the program is to be loaded.  If there are multiple subroutines , the programmer must remember the address of each. :: ::
  • 16.  To avoid possible reassembling of all subroutines when a single subroutine is changed and to perform the tasks of allocation and linking for the programmer the relocating loaders is introduced.  The execution of the object program is done using any part of the available & sufficient memory.  The object program is loaded into memory wherever there is room for it. 16Loaders
  • 17.  The assembler assembles each procedures segment independently and passes to loader the text and information as to relocation and intersegment references.  The assembler would also provide the loader with additional information, such as the length of the entire program and the length of the transfer vector. 17Loaders
  • 18.  BINARY SYMBOLIC SUBROUTINE ( ) loader such as used in the IBM 7094,IBM 1130,GE 635.  The output of the relocating assembler using a BINARY SYMBOLIC SUBROUTINE(BSS) scheme is the Object program and information about all other program its references.  The BSS loader allows many procedure segments but only one data (common)segment.  The BSS loader scheme is often used on computers with a fixed-length direct address instruction format. 18Loaders :: ::
  • 19.  Avoids possible reassembling of all Subroutines when a single Subroutine is changed  Perform the tasks of allocation and linking for the programmer. 19Loaders :: ::  Difficult to implement  Algorithm is depends on File structure of the object program.  Slower than Absolute loader :: ::
  • 20.  In this type of loaders first load , links and then Relocates segments.  Complete freedom in referencing data or instructions contained in other segments  Perform all linking and relocation at load time.  A linking loader is known as general relocatable loader or direct-linking loader. 20Loaders
  • 21.  PASS-ONE : accepts object file and produces Global external symbol table (GEST) and copies of the object programs as O/P.  PASS-TWO : object programs are loaded to the primary memory after proper translation of address . 21Loaders  One pass linking loader performs all operations that are specified in a two-pass linking loaders
  • 22.  It allows multiple procedure and data segment.  It provides flexible inter-segment referencing and Accessing ability, at same time independent translation of programs. 22Loaders :: ::  It is necessary for allocation, relocation, linking and loading.  All the subroutine are required each time in order to execute a program .  It is time consuming. :: ::
  • 23. Linkers Loaders Combine the target code with the code of other programs and library routines in order to generate a binary program. Load executable code into the memory. Carried out with the help of compiler Part of operating system The execution of linking can be during compilation or during execution of the program The loads the program into the memory when it is scheduled for execution. 23Loaders
  • 24.  What is Loader  Use of Loader  Types of Loader  Linkers vs. Loader 24Loaders Reference :: -System Programming by Srimanta Pal OXFORD Publication -web.thu.edu.tw/ctyang/www/files/sp_chap3