位置独立コードとは? わかりやすく解説

Weblio 辞書 > 辞書・百科事典 > 百科事典 > 位置独立コードの意味・解説 

位置独立コード

(position-independent code から転送)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2020/06/20 15:56 UTC 版)

位置独立コード(いちどくりつコード、: position-independent codePIC)または位置独立実行形式(いちどくりつじっこうけいしき、: position-independent executablePIE)とは、主記憶装置内のどこに置かれても絶対アドレスに関わらず正しく実行できる機械語の列である。PICは主に共有ライブラリに使われ、各プログラムが(例えば他の共有ライブラリに)使われていない任意の別々のアドレスに同じ共有ライブラリをロードして使うことができる。PICはMMUによる仮想記憶の仕組みが無い古いコンピュータシステムでも使われていた[1]。PICを使えば、MMUのないシステムであってもオペレーティングシステム (OS) が単一のアドレス空間内で複数のアプリケーションを共存させることができる。


  1. ^ John R. Levine (October 1999). “Chapter 8: Loading and overlays”. Linkers and Loaders. San Francisco: Morgan-Kauffman. pp. 170–171. ISBN 1-55860-496-0. http://darcs.olsner.se/Linker/linker-book/linker08.html 
  2. ^ Alexander Gabert (2004年1月). “Position Independent Code internals”. Hardened Gentoo. 2009年12月3日閲覧。 “direct non-PIC-aware addressing is always cheaper (read: faster) than PIC addressing.”
  3. ^ Rick Anderson (2000年1月). “The End of DLL Hell”. Microsoft Developer Network. 2007年4月19日時点のオリジナル[リンク切れ]よりアーカイブ。2007年4月26日閲覧。 “Sharing common DLLs does provide a significant savings on memory load. But Windows is not always able to share one instance of a DLL that is loaded by multiple processes.”
  4. ^ Matt Pietrek (2002年2月). “An In-Depth Look into the Win32 Portable Executable File Format”. MSDN Magazine. 2012年1月28日閲覧。 “PE files can load just about anywhere in the process address space. While they do have a preferred load address, you can't rely on the executable file actually loading there. To avoid having hardcoded memory addresses in PE files, RVAs are used. An RVA is simply an offset in memory, relative to where the PE file was loaded.”
  5. ^ Matt Pietrek (2000年12月). “MSDN Magazine - Under the Hood - Programming for 64-bit Windows”. 2011年2月9日閲覧。 “Position-independent code eliminates the need for the base relocations that are used in the x86 version of Windows.”


「位置独立コード」の続きの解説一覧



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「位置独立コード」の関連用語

位置独立コードのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



位置独立コードのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアの位置独立コード (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。

©2024 GRAS Group, Inc.RSS