SlideShare uma empresa Scribd logo
1 de 12
Baixar para ler offline
Loaders
5/1/2006 Computer System Software CS012 BE CS 7th Semester 2
Loader
5/1/2006 Computer System Software CS012 BE CS 7th Semester 3
Loader
1.memory allocation
2.linking : object module symbolic
reference
3.relocation : adjust address dependent
locations(address constant)
4.loading : physically place the program
5/1/2006 Computer System Software CS012 BE CS 7th Semester 4
Compile and Go Loaders
5/1/2006 Computer System Software CS012 BE CS 7th Semester 5
Advantages & Disadvantages
Simple to implement
Disadvantages
1. A portion of the memory is wasted
2. It is necessary to retranslate the program
every time
3. It is very difficult to handle multiple
segments, specifically when they are in
different languages,so it is very difficult to
produce modular programs.
5/1/2006 Computer System Software CS012 BE CS 7th Semester 6
General Loader Scheme
In this the loader accepts the assembled
machine instructions, data & other
information present in the object format &
places machine instructions & data in core in
an executable format.
The loader is smaller then assembler so more
memory is available to the user. Now we
don’t need to retranslate the program.
If all the source program translators produce
compatible object programs & use compatible
linkage conventions,it is possible to write
subroutines in different languages.
5/1/2006 Computer System Software CS012 BE CS 7th Semester 7
Absolute Loaders
In this scheme the object program is placed
in secondary devices. The loader only accepts
the machine language text & places into core
at the location prescribed by the assembler.
Disadvantage is that the programmer must
specify the load address in the program &
also if there are multiple subroutines, the
programmer must remember the address of
each & use that in other subroutines to
perform subroutine linkages.
5/1/2006 Computer System Software CS012 BE CS 7th Semester 8
Absolute Loader
5/1/2006 Computer System Software CS012 BE CS 7th Semester 9
Relocating Loader
In this the assembler assembles each procedure
segment independently & passes onto the loader
the text & information as to relocation &
intersegment references. For each source program
the assembler outputs a text prefixed by the
transfer vector that consists of addresses
containing the names of subroutines referenced by
the source program. The assembler would also
provide to the loader the length of the program &
length of the transfer vector. The loader will load
each subroutine identified in the Transfer vector.
It will then place a transfer instruction to the
corresponding subroutine in each entry in the TV.
5/1/2006 Computer System Software CS012 BE CS 7th Semester 10
5/1/2006 Computer System Software CS012 BE CS 7th Semester 11
:
:
400 BC 15,448
404 BC 15,526
408 ST 14,436
412 L 1,440
416 BAL 14,400
420 C 1,444
424 BC 7,404
428 L 4,436
432 BCR 15,14
436 TEMP LOC
440 9
444 3 LENGTH 48 BYTES
: SQRT LENGTH 78 BYTES
:
526 ERR
5/1/2006 Computer System Software CS012 BE CS 7th Semester 12
Pros & cons
Relocation bits are used to solve the problem
of relocation , transfer vector is used to solve
the problem of linking & program length info
to solve allocation.
Disadvantages
not suited for loading external data.
Transfer vector increases the size
Does not facilitate access to data segments
that can be shared

Mais conteúdo relacionado

Mais procurados

XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdThe Linux Foundation
 
Linker and loader upload
Linker and loader   uploadLinker and loader   upload
Linker and loader uploadBin Yang
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assemblerBansari Shah
 

Mais procurados (9)

Direct linking loaders
Direct linking loadersDirect linking loaders
Direct linking loaders
 
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
 
Linker and loader upload
Linker and loader   uploadLinker and loader   upload
Linker and loader upload
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assembler
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
Dynamic Linker
Dynamic LinkerDynamic Linker
Dynamic Linker
 
Linkers in compiler
Linkers in compilerLinkers in compiler
Linkers in compiler
 

Semelhante a Loader2

Loader and Its types
Loader and Its typesLoader and Its types
Loader and Its typesParth Dodiya
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfhakilic1
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler DesignAbhishekKumar117405
 
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...Qualcomm Developer Network
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfSATHYABAMAMADHANKUMA
 
Upgrade to IBM z/OS V2.4 planning
Upgrade to IBM z/OS V2.4 planningUpgrade to IBM z/OS V2.4 planning
Upgrade to IBM z/OS V2.4 planningMarna Walle
 
Pivotal Cloud Foundry 2.5: A First Look
Pivotal Cloud Foundry 2.5: A First LookPivotal Cloud Foundry 2.5: A First Look
Pivotal Cloud Foundry 2.5: A First LookVMware Tanzu
 
Manual software para acionamneto v75
Manual software para acionamneto v75Manual software para acionamneto v75
Manual software para acionamneto v75FTorres Torres
 
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation Platform
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation PlatformFPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation Platform
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation PlatformFlexTiles Team
 
Ecet 365 Education Redefined - snaptutorial.com
Ecet 365    Education Redefined - snaptutorial.comEcet 365    Education Redefined - snaptutorial.com
Ecet 365 Education Redefined - snaptutorial.comDavisMurphyC85
 
Cloud Presentation.pdf
Cloud Presentation.pdfCloud Presentation.pdf
Cloud Presentation.pdfMandanaHazeri
 
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Guptavdmchallenge
 

Semelhante a Loader2 (20)

Handout#12
Handout#12Handout#12
Handout#12
 
Loader and Its types
Loader and Its typesLoader and Its types
Loader and Its types
 
ARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdfARM Embeded_Firmware.pdf
ARM Embeded_Firmware.pdf
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
 
Loader
LoaderLoader
Loader
 
loaders and linkers
 loaders and linkers loaders and linkers
loaders and linkers
 
Org-&-Arch-2.ppt
Org-&-Arch-2.pptOrg-&-Arch-2.ppt
Org-&-Arch-2.ppt
 
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...
Power-Efficient Programming Using Qualcomm Multicore Asynchronous Runtime Env...
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdf
 
Upgrade to IBM z/OS V2.4 planning
Upgrade to IBM z/OS V2.4 planningUpgrade to IBM z/OS V2.4 planning
Upgrade to IBM z/OS V2.4 planning
 
UDP Report
UDP ReportUDP Report
UDP Report
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
 
Pivotal Cloud Foundry 2.5: A First Look
Pivotal Cloud Foundry 2.5: A First LookPivotal Cloud Foundry 2.5: A First Look
Pivotal Cloud Foundry 2.5: A First Look
 
0_651601247.pdf
0_651601247.pdf0_651601247.pdf
0_651601247.pdf
 
Manual software para acionamneto v75
Manual software para acionamneto v75Manual software para acionamneto v75
Manual software para acionamneto v75
 
D031201021027
D031201021027D031201021027
D031201021027
 
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation Platform
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation PlatformFPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation Platform
FPL'2014 - FlexTiles Workshop - 5 - FlexTiles Simulation Platform
 
Ecet 365 Education Redefined - snaptutorial.com
Ecet 365    Education Redefined - snaptutorial.comEcet 365    Education Redefined - snaptutorial.com
Ecet 365 Education Redefined - snaptutorial.com
 
Cloud Presentation.pdf
Cloud Presentation.pdfCloud Presentation.pdf
Cloud Presentation.pdf
 
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
 

Último

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
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
 
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
 
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
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfEr. Suman Jyoti
 

Último (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
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
 
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
 
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
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
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...
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
(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
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 

Loader2

  • 2. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 2 Loader
  • 3. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 3 Loader 1.memory allocation 2.linking : object module symbolic reference 3.relocation : adjust address dependent locations(address constant) 4.loading : physically place the program
  • 4. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 4 Compile and Go Loaders
  • 5. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 5 Advantages & Disadvantages Simple to implement Disadvantages 1. A portion of the memory is wasted 2. It is necessary to retranslate the program every time 3. It is very difficult to handle multiple segments, specifically when they are in different languages,so it is very difficult to produce modular programs.
  • 6. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 6 General Loader Scheme In this the loader accepts the assembled machine instructions, data & other information present in the object format & places machine instructions & data in core in an executable format. The loader is smaller then assembler so more memory is available to the user. Now we don’t need to retranslate the program. If all the source program translators produce compatible object programs & use compatible linkage conventions,it is possible to write subroutines in different languages.
  • 7. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 7 Absolute Loaders In this scheme the object program is placed in secondary devices. The loader only accepts the machine language text & places into core at the location prescribed by the assembler. Disadvantage is that the programmer must specify the load address in the program & also if there are multiple subroutines, the programmer must remember the address of each & use that in other subroutines to perform subroutine linkages.
  • 8. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 8 Absolute Loader
  • 9. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 9 Relocating Loader In this the assembler assembles each procedure segment independently & passes onto the loader the text & information as to relocation & intersegment references. For each source program the assembler outputs a text prefixed by the transfer vector that consists of addresses containing the names of subroutines referenced by the source program. The assembler would also provide to the loader the length of the program & length of the transfer vector. The loader will load each subroutine identified in the Transfer vector. It will then place a transfer instruction to the corresponding subroutine in each entry in the TV.
  • 10. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 10
  • 11. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 11 : : 400 BC 15,448 404 BC 15,526 408 ST 14,436 412 L 1,440 416 BAL 14,400 420 C 1,444 424 BC 7,404 428 L 4,436 432 BCR 15,14 436 TEMP LOC 440 9 444 3 LENGTH 48 BYTES : SQRT LENGTH 78 BYTES : 526 ERR
  • 12. 5/1/2006 Computer System Software CS012 BE CS 7th Semester 12 Pros & cons Relocation bits are used to solve the problem of relocation , transfer vector is used to solve the problem of linking & program length info to solve allocation. Disadvantages not suited for loading external data. Transfer vector increases the size Does not facilitate access to data segments that can be shared