Loader (computing)

Loader (computing)

In computing, a loader is the part of an operating system that is responsible for loading programs from executables (i.e., executable files) into memory, preparing them for execution and then executing them. The loader is usually a part of the operating system's kernel and usually is loaded at system boot time and stays in memory until the system is rebooted, shut down, or powered off. Some operating systems that have a pageable kernel may have the loader in the pageable part of memory and thus the loader sometimes may be swapped out of memory. All operating systems that support program loading have loaders. Some embedded operating systems in highly specialized computers run only one program and have no program loading capabilities and thus no loaders, for example embedded systems in cars or stereo equipment.

In Unix, the loader is the handler for the system call execve(). [cite web |url=http://www.opengroup.org/onlinepubs/000095399/functions/exec.html |title=exec |publisher=The Open Group |work=The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition |accessdate=2008-06-23] The loader's tasks under Unix include: (1) validation (permissions, memory requirements etc.); (2) copying the program image from the disk into main memory; (3) copying the command-line arguments on the stack; (4) initializing registers (e.g., the stack pointer); (5) jumping to the program entry point (_start).

Loader programs are useful for prototyping, testing, and one-off applications. One such program was an integral part of Gene Amdahl's original OS/360 operating system, and this loader facility was continued through OS/360's descendants including MVT, MVS and z/OS.

Relocating loaders

Some computers need "relocating" loaders, which adjust addresses (pointers) in the executable to compensate for variations in the address at which loading starts. The computers which need relocating loaders are those in which pointers are absolute addresses rather than offsets from the program's base address. One well-known example is IBM's System/360 mainframes and their descendants, including the System z9 series.

Dynamic linkers

Dynamic linkers are another type of loader that load and link shared libraries (like .dll files) to already loaded running programs.

ee also

*Library (computing)
*Linker
*Object File
*Prebinding
*Relocation
*Static Library
*LD_PRELOAD
*Runtime
* Java Classloader

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Loader — can refer to:*Loader (equipment) *Loader (computing) *Boot loader *Clapper loader (on a film crew, also simply known as loader ) *A member of a heavy weapon crew responsible for handling and loading ammunition, such as on a howitzer or tank crew …   Wikipedia

  • Computing Technology Industry Association — The Computing Technology Industry Association (CompTIA), a non profit trade association, was created in 1982 as the Association of Better Computer Dealers, Inc. (ABCD) by representatives of five microcomputer dealerships. Over the course of a… …   Wikipedia

  • Library (computing) — This article is about the programming concept. For Windows 7 Libraries, see Features new to Windows 7#Libraries. Illustration of an application which uses libvorbisfile to play an Ogg Vorbis file In computer science, a library is a collection of… …   Wikipedia

  • List of computing and IT abbreviations — This is a list of computing and IT acronyms and abbreviations. Contents: 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y …   Wikipedia

  • History of computing hardware (1960s–present) — The history of computing hardware starting at 1960 is marked by the conversion from vacuum tube to solid state devices such as the transistor and later the integrated circuit. By 1959 discrete transistors were considered sufficiently reliable and …   Wikipedia

  • Bootstrapping (computing) — In computing, bootstrapping ( to pull oneself up by one s bootstraps ) refers to techniques that allow a simple system to activate a more complicated system. A common scenario is the start up process of a computer system, where a small program,… …   Wikipedia

  • Process (computing) — In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that… …   Wikipedia

  • Kernel (computing) — A kernel connects the application software to the hardware of a computer In computing, the kernel is the main component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware… …   Wikipedia

  • Load (computing) — In UNIX computing, the system load is a measure of the amount of work that a computer system is doing. The load average is the average system load over a period of time. It is conventionally given as three numbers that represent the system load… …   Wikipedia

  • Meco-Moore Cutter Loader — The Meco Moore cutter loader was an early twentieth century British mining machine. It was invented by Mr M. Moore, and developed by the Mining Engineering Company (MECO) of Worcester. It was a heavy machine (120hp / 89.5 kW) and was first used… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”