SYSTEM SOFTWARE
TEAM 3 :
Abdul Kalam Ashad.A– 13mx01
Darsini.R – 13mx07
Gowri Manohari.M – 13mx13
Manickkavalli. M - 13MX26
Sathasivam.R – 13mx41
ASSIGNMENT PRESENTAION - I
Loaders
Components Of System Software – A walkthrough.
Introducing loader.
Basic Loader functions.
Steps involved in loading.
Loader Schemes.
Types of loaders.
COMPILER
 Translates high-level language programs into assembly
language programs.
ASSEMBLER
Converts assembly language programs into object files.
 Object files contain a combination of machine
instructions, data, and information needed to place
instructions properly in memory.
LINKER
Tool that merges the object files produced by
separate compilation or assembly and creates an
executable.
LOADER
 Part of the OS that brings an executable file
residing on disk into memory and starts it running.
Loaders
Loader is a system program that loads machine
codes of a program into the system memory.
Loading a program involves reading the contents
of executable file into memory.
Once loading is complete, the operating system
starts the program by passing control to the loaded
program
 LOADING- allocates memory location and brings
the object program into memory for execution –
done by Loader.
LINKING - combines two or more separate object
programs and supplies the information needed to allow
references between them – done by Linker.
RELOCATION - modifies the object program so
that it can be loaded at an address different from
the location originally specified – by Linking Loader.
Loaders
Executable file’ s header is read to determine the
size of text and data segments.
Instructions and data are copied into address
space.
 Arguments passed to the program are copied
on the stack
Machine registers including the stack pointer are
initialized.
The control is transferred to a start-up routine
that copies the program’ s arguments from the
stack to registers and calls the program’ s main
routine.
“Compile-and-Go” Loaders
General Loader Scheme
“COMPILE-AND-GO” LOADERS:
Assembler will be running in one part of
memory.
The assembled data & machine instructions are
directly assigned into the memory locations.
Example : FORTRAN
When the assembly is over, the control transfers
to the starting instruction of the program.
The loader consists of an instruction to make this
control transfer.
DISADVANTAGES :
• Memory wastage due to the unavailability of
assembler to the object program.
Need to assemble the program every time it’s
run.
Difficulty in handling if the source programs are
in different languages.
Loaders
Uses an object deck as intermediate data.
Here the loader accepts the assembled machine
instructions and data in the object format and places it
in the memory in an executable form.
ADVANTAGES :
Smaller than assembler.
No reassembly is needed.
Possible to write subroutines in different languages.
Loaders
Absolute Loader.
Bootstrap Loader.
 Relocating Loader (Relative Loader)
 Linking Loader.
Absolute loader loads the object code to specified
locations in the memory.
 At the end the loader jumps to the specified address
to begin execution of the loaded program.
ADVANTAGES : Simple and efficient.
DISADVANTAGES :
• The need for programmer to specify the actual
address.
• Difficulty in using subroutine libraries.
Loaders
When a computer is first turned on or restarted,
a special type of absolute loader, called bootstrap
loader is executed.
This bootstrap loads the first program to be run
by the computer - usually an operating system.
The bootstrap itself begins at address 0.
Loaders that allow for program relocation are
called Relocating loaders or Relative loaders.
 CONCEPT OF RELOCATION :
• 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.
• The actual starting address of the object program
is not known until load time.
• Relocation provides the efficient sharing of the
machine with larger memory and when several
independent programs are to be run together.
• It also supports the use of subroutine libraries
efficiently.
Perform all linking and relocation at load time.
The Other Alternatives :
• Linkage editors - which performs linking prior
to load time.
• Dynamic linking – where linking function is
performed at execution time.
Loaders
 Produces a linked version of the program – called a
load module or an executable image.
 This load module is written to a file or library for
later execution.
The linked program produced is suitable for
processing by a relocating loader.
Using Linkage editor , an absolute object program
can be created, if starting address is already known.
Loaders
This scheme postpones the linking functions until
execution.
A subroutine is loaded and linked to the rest of
the program when it is first called.
It is usually called dynamic linking, dynamic
loading or load on call.
Allows several executing programs to share one
copy of a subroutine or library.
In an object oriented system, dynamic linking
makes it possible for one object to be shared by
several programs.
Dynamic linking provides the ability to load
the routines only when they are needed.
Run-time linker uses dynamic linking approach
which binds dynamic executables and shared
objects at execution time.
•System Programming by John.J.Donovan
•https://www.classle.net/book/loaders-intoduction
•http://elearning.vtu.ac.in/p7/enotes/CS51/Unit
3-HDP.pdf
•http://www.cs.gmu.edu/~setia/cs365-
S02/assembler.pdf
Loaders

More Related Content

PDF
Unit 3
PPTX
Introduction to loaders
PPTX
Loaders ( system programming )
PPTX
Direct linking loaders
PDF
Linker and Loader Explained
PPTX
Ch 4 linker loader
PPTX
Linker and Loader
PPTX
Life cycle of a computer program
Unit 3
Introduction to loaders
Loaders ( system programming )
Direct linking loaders
Linker and Loader Explained
Ch 4 linker loader
Linker and Loader
Life cycle of a computer program

What's hot (20)

PPTX
Single pass assembler
PPTX
Introduction to java
PPTX
Macro Processor
PDF
loaders and linkers
PPTX
System calls
PPTX
Linux operating system ppt
PPTX
Loader and Its types
PPT
Disk structure
PPT
Loaders
PPTX
Principle source of optimazation
PPTX
Unit 4 sp macro
PPTX
oops concept in java | object oriented programming in java
PPTX
Paging and segmentation
PPTX
Unit 3 sp assembler
PPTX
Direct linking loader
PPTX
Message passing in Distributed Computing Systems
PPTX
Linux commands
PPS
Virtual memory
PDF
Macro-processor
PPT
Assembler
Single pass assembler
Introduction to java
Macro Processor
loaders and linkers
System calls
Linux operating system ppt
Loader and Its types
Disk structure
Loaders
Principle source of optimazation
Unit 4 sp macro
oops concept in java | object oriented programming in java
Paging and segmentation
Unit 3 sp assembler
Direct linking loader
Message passing in Distributed Computing Systems
Linux commands
Virtual memory
Macro-processor
Assembler
Ad

Viewers also liked (9)

PPT
Macro
PDF
Operator precedence
PPTX
System Programming Unit II
PPT
Memory hierarchy
PPT
Computer organization memory hierarchy
PPT
30326851 -operating-system-unit-1-ppt
PPT
Windows 98
PPT
Bios ( Basic Input Output System )
PPTX
Ports and connectors
Macro
Operator precedence
System Programming Unit II
Memory hierarchy
Computer organization memory hierarchy
30326851 -operating-system-unit-1-ppt
Windows 98
Bios ( Basic Input Output System )
Ports and connectors
Ad

Similar to Loaders (20)

PPTX
linker & loader presentation in Compiler Design
PPTX
System software module 3 presentation file
DOCX
Loaders
PPTX
linkerloader ss-2.pptx
PPT
Loaders and Linkers
PPTX
PPT
Mod 5.3 - Linkers & Loaderss Summary.ppt
PPTX
SPOS UNIT 3 notes SPOS UNIT 3 notes SPOS UNIT 3 notes
PPTX
System software module 1 presentation file
PDF
loaders-and-linkers.pdfhhhhhccftyghgfggy
PDF
Hm system programming class 1
PPT
PPT
System software-loaders
PPT
PPTX
Linkers in compiler
PPT
loaderfffffffffffffffffffffffffffflinker.ppt
PDF
Handout#11
PDF
system prgramming - loaders-linkers.pdf
PPT
assem.ppt
PPT
Overall 23 11_2007_hdp
linker & loader presentation in Compiler Design
System software module 3 presentation file
Loaders
linkerloader ss-2.pptx
Loaders and Linkers
Mod 5.3 - Linkers & Loaderss Summary.ppt
SPOS UNIT 3 notes SPOS UNIT 3 notes SPOS UNIT 3 notes
System software module 1 presentation file
loaders-and-linkers.pdfhhhhhccftyghgfggy
Hm system programming class 1
System software-loaders
Linkers in compiler
loaderfffffffffffffffffffffffffffflinker.ppt
Handout#11
system prgramming - loaders-linkers.pdf
assem.ppt
Overall 23 11_2007_hdp

More from Sathasivam Rangasamy (11)

Recently uploaded (20)

PPTX
4. Diagnosis and treatment planning in RPD.pptx
PDF
African Communication Research: A review
PDF
Farming Based Livelihood Systems English Notes
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
Health aspects of bilberry: A review on its general benefits
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PPTX
Macbeth play - analysis .pptx english lit
PPTX
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
PDF
FYJC - Chemistry textbook - standard 11.
PPTX
Case Study on mbsa education to learn ok
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
PUBH1000 - Module 6: Global Health Tute Slides
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Nurlina - Urban Planner Portfolio (english ver)
PPTX
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
anganwadi services for the b.sc nursing and GNM
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Chevening Scholarship Application and Interview Preparation Guide
4. Diagnosis and treatment planning in RPD.pptx
African Communication Research: A review
Farming Based Livelihood Systems English Notes
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Health aspects of bilberry: A review on its general benefits
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
Macbeth play - analysis .pptx english lit
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
FYJC - Chemistry textbook - standard 11.
Case Study on mbsa education to learn ok
Journal of Dental Science - UDMY (2020).pdf
PUBH1000 - Module 6: Global Health Tute Slides
Laparoscopic Colorectal Surgery at WLH Hospital
The TKT Course. Modules 1, 2, 3.for self study
Nurlina - Urban Planner Portfolio (english ver)
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
anganwadi services for the b.sc nursing and GNM
Journal of Dental Science - UDMY (2021).pdf
Chevening Scholarship Application and Interview Preparation Guide

Loaders

  • 1. SYSTEM SOFTWARE TEAM 3 : Abdul Kalam Ashad.A– 13mx01 Darsini.R – 13mx07 Gowri Manohari.M – 13mx13 Manickkavalli. M - 13MX26 Sathasivam.R – 13mx41 ASSIGNMENT PRESENTAION - I
  • 3. Components Of System Software – A walkthrough. Introducing loader. Basic Loader functions. Steps involved in loading. Loader Schemes. Types of loaders.
  • 4. COMPILER  Translates high-level language programs into assembly language programs. ASSEMBLER Converts assembly language programs into object files.  Object files contain a combination of machine instructions, data, and information needed to place instructions properly in memory.
  • 5. LINKER Tool that merges the object files produced by separate compilation or assembly and creates an executable. LOADER  Part of the OS that brings an executable file residing on disk into memory and starts it running.
  • 7. Loader is a system program that loads machine codes of a program into the system memory. Loading a program involves reading the contents of executable file into memory. Once loading is complete, the operating system starts the program by passing control to the loaded program
  • 8.  LOADING- allocates memory location and brings the object program into memory for execution – done by Loader. LINKING - combines two or more separate object programs and supplies the information needed to allow references between them – done by Linker. RELOCATION - modifies the object program so that it can be loaded at an address different from the location originally specified – by Linking Loader.
  • 10. Executable file’ s header is read to determine the size of text and data segments. Instructions and data are copied into address space.  Arguments passed to the program are copied on the stack
  • 11. Machine registers including the stack pointer are initialized. The control is transferred to a start-up routine that copies the program’ s arguments from the stack to registers and calls the program’ s main routine.
  • 12. “Compile-and-Go” Loaders General Loader Scheme “COMPILE-AND-GO” LOADERS: Assembler will be running in one part of memory. The assembled data & machine instructions are directly assigned into the memory locations. Example : FORTRAN
  • 13. When the assembly is over, the control transfers to the starting instruction of the program. The loader consists of an instruction to make this control transfer. DISADVANTAGES : • Memory wastage due to the unavailability of assembler to the object program.
  • 14. Need to assemble the program every time it’s run. Difficulty in handling if the source programs are in different languages.
  • 16. Uses an object deck as intermediate data. Here the loader accepts the assembled machine instructions and data in the object format and places it in the memory in an executable form. ADVANTAGES : Smaller than assembler. No reassembly is needed. Possible to write subroutines in different languages.
  • 18. Absolute Loader. Bootstrap Loader.  Relocating Loader (Relative Loader)  Linking Loader.
  • 19. Absolute loader loads the object code to specified locations in the memory.  At the end the loader jumps to the specified address to begin execution of the loaded program. ADVANTAGES : Simple and efficient. DISADVANTAGES : • The need for programmer to specify the actual address. • Difficulty in using subroutine libraries.
  • 21. When a computer is first turned on or restarted, a special type of absolute loader, called bootstrap loader is executed. This bootstrap loads the first program to be run by the computer - usually an operating system. The bootstrap itself begins at address 0.
  • 22. Loaders that allow for program relocation are called Relocating loaders or Relative loaders.  CONCEPT OF RELOCATION : • 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.
  • 23. • The actual starting address of the object program is not known until load time. • Relocation provides the efficient sharing of the machine with larger memory and when several independent programs are to be run together. • It also supports the use of subroutine libraries efficiently.
  • 24. Perform all linking and relocation at load time. The Other Alternatives : • Linkage editors - which performs linking prior to load time. • Dynamic linking – where linking function is performed at execution time.
  • 26.  Produces a linked version of the program – called a load module or an executable image.  This load module is written to a file or library for later execution. The linked program produced is suitable for processing by a relocating loader. Using Linkage editor , an absolute object program can be created, if starting address is already known.
  • 28. This scheme postpones the linking functions until execution. A subroutine is loaded and linked to the rest of the program when it is first called. It is usually called dynamic linking, dynamic loading or load on call. Allows several executing programs to share one copy of a subroutine or library.
  • 29. In an object oriented system, dynamic linking makes it possible for one object to be shared by several programs. Dynamic linking provides the ability to load the routines only when they are needed. Run-time linker uses dynamic linking approach which binds dynamic executables and shared objects at execution time.
  • 30. •System Programming by John.J.Donovan •https://www.classle.net/book/loaders-intoduction •http://elearning.vtu.ac.in/p7/enotes/CS51/Unit 3-HDP.pdf •http://www.cs.gmu.edu/~setia/cs365- S02/assembler.pdf