Position-Independent Code

Position-Independent Code
QS-Informatik

Dieser Artikel wurde aufgrund von inhaltlichen Mängeln auf der Qualitätssicherungsseite der Redaktion Informatik eingetragen. Dies geschieht, um die Qualität der Artikel aus dem Themengebiet Informatik auf ein akzeptables Niveau zu bringen. Hilf mit, die inhaltlichen Mängel dieses Artikels zu beseitigen und beteilige dich an der Diskussion! (+)
Begründung: Struktur und Quellen --Crazy1880 18:58, 6. Mai 2011 (CEST)

Position-independent Code (PIC, engl. für positionsunabhängiger Code) ist Maschinencode, der ausgeführt werden kann, unabhängig davon, wo im Hauptspeicher er sich befindet. PIC wird üblicherweise für dynamische Bibliotheken verwendet, damit diese für jedes Programm an eine Speicherposition geladen werden können, wo sie sich nicht mit anderen Objekten dieses Programms überlappen. Auf älteren Computern ohne MMU wurde PIC verwendet, um die verschiedenen Programme gleichzeitig in den Speicher laden zu können, obwohl solche Systeme nur einen Adressraum haben.

Position-independent Code kann an eine beliebige Stelle im Speicher kopiert und von dort ohne Änderungen ausgeführt werden. Damit unterscheidet er sich von relozierbarem Code, der einer speziellen Verarbeitung durch den Linker oder Lader bedarf, bevor er an einer bestimmten Speicherposition ausgeführt werden kann. Der Quellcode aus dem PIC generiert wird muss bestimmte Anforderungen erfüllen. Ebenso muss der Compiler es unterstützen. Er muss sämtliche Maschinenbefehle, die sich auf eine absolute Speicheradresse beziehen, durch entsprechende Befehle ersetzen, die relativ zum Befehlszähler arbeiten. Diese zusätzliche Indirektion kann dazu führen, dass positionsunabhängiger Code langsamer ausgeführt wird als äquivalenter positionsabhängiger Code.


Wikimedia Foundation.

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

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Position-independent code — In computing, position independent code (PIC) or position independent executable (PIE) is machine instruction code that executes properly regardless of where in memory it resides. PIC is commonly used for shared libraries, so that the same… …   Wikipedia

  • Code segment — In computing, a code segment, also known as a text segment or simply as text, is one of the sections of a program in an object file or in memory, which contains executable instructions. It has a fixed size and is usually read only. If the text… …   Wikipedia

  • Independent Order of Odd Fellows — This article is about the North American organization and its international off shoots. For other world wide Orders, see Odd Fellows. For the Australian financial services company, see IOOF (company). For other uses, see IOOF (disambiguation).… …   Wikipedia

  • Code 128 — Wikipedia encoded in Code 128 B Code 128 is a very high density barcode symbology. It is used for alphanumeric or numeric only barcodes. It can encode all 128 characters of ASCII and, by use of an extension character (FNC4), the Latin 1… …   Wikipedia

  • List of Code Geass episodes — Code Geass DVD released in Japan. This is a list of episodes for the Sunrise anime television series Code Geass. Code Geass officially premiered on the Mainichi Broadcasting System (MBS) television network on October 15, 2006.[1 …   Wikipedia

  • North Forest Independent School District — Administration building North Forest Independent School District is a school district based in northeast Houston, Texas. In 2009, the school district was rated academically unacceptable by the Texas Education Agency …   Wikipedia

  • Chess960 starting position — Chess960 is a chess variant in which the arrangement of pieces on the first rank is randomly generated. There are 960 possible starting positions, hence the name. The starting position can be generated before the game either by a computer program …   Wikipedia

  • Hamming code — In telecommunication, a Hamming code is a linear error correcting code named after its inventor, Richard Hamming. Hamming codes can detect and correct single bit errors. In other words, the Hamming distance between the transmitted and received… …   Wikipedia

  • List of Code Geass characters — The fictional characters in the Sunrise anime series Code Geass: Lelouch of the Rebellion were designed by Clamp. Contents 1 Creation and conception 2 Main characters 2.1 Lelouch Lamperouge …   Wikipedia

  • Trade and crafts code of Germany — Articles 3 paragraph 1,(c), 14 and 43 55 of the EC Treaty (Freedom of establishment, freedom to provide services and mutual recognition of diplomas) The EC Treaty lays down the principle that the self employed (whether working in commercial,… …   Wikipedia

Share the article and excerpts

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