encyclopegia.org

Portable Executable

Portable Executable (PE) is a file format for native executable code on 32-bit and 64-bit Windows operating systems, as well as in UEFI environments. It is used for native executables ( , ), dynamic link libraries ( , ), system drivers ( , ) and many other types of files. The PE format supports storing the data required to load and start an operating system process including references to dynamic link libraries, tables for importing and exporting application programming interface (API) functions, resource management data and thread-local storage (TLS) information. According to the Unified Extensible Firmware Interface (UEFI) specification, the PE format is also the accepted standard for executables in EFI environments. On Windows NT systems, it currently supports a range of instruction sets, including IA-32, x86-64 (AMD64/Intel 64), IA-64, ARM and ARM64. Before the advent of Windows 2000, Windows NT (and by extension the PE format) also supported MIPS, Alpha, and PowerPC architectures. Moreover, thanks to its use in Windows CE, PE has maintained compatibility with several MIPS, ARM (including Thumb), and SuperH variants. Functionally, the PE format is similar to other platform-specific executable formats, such as the ELF format used in Linux and most Unix-like systems, and the Mach-O format found in macOS and iOS.

Portable Executable (PE) is a file format for native executable code on 32-bit and 64-bit Windows operating systems, as well as in UEFI environments. It is used for native executables ( , ), dynamic link libraries ( , ), system drivers ( , ) and many other types of files. The PE format supports storing the data required to load and start an operating system process including references to dynamic link libraries, tables for importing and exporting application programming interface (API) functions, resource management data and thread-local storage (TLS) information. According to the Unified Extensible Firmware Interface (UEFI) specification, the PE format is also the accepted standard for executables in EFI environments. On Windows NT systems, it currently supports a range of instruction sets, including IA-32, x86-64 (AMD64/Intel 64), IA-64, ARM and ARM64. Before the advent of Windows 2000, Windows NT (and by extension the PE format) also supported MIPS, Alpha, and PowerPC architectures. Moreover, thanks to its use in Windows CE, PE has maintained compatibility with several MIPS, ARM (including Thumb), and SuperH variants. Functionally, the PE format is similar to other platform-specific executable formats, such as the ELF format used in Linux and most Unix-like systems, and the Mach-O format found in macOS and iOS. ==Technical details== ===Layout=== A PE file consists of several headers and sections that instruct the dynamic linker on how to map the file into memory. An executable image consists of several different regions, each requiring different memory protection attributes. To ensure proper alignment, the start of each section must align to a page boundary. For instance, the .text section, which contains program code, is typically mapped as an execute/read-only. Conversely, the .data section, which holds global variables, is mapped as no-execute/read write. However, to conserve space, sections are not aligned on disk in this manner. The dynamic linker maps each section to memory individually and assigns the correct permissions based on the information in the headers. ===Import table=== The import address table (IAT) is used as a lookup table when the application calls a function in a different module. The imports can be specified by ordinal or by name. Because a compiled program cannot know the memory locations of its dependent libraries beforehand, an indirect jump is necessary for API calls. As the dynamic linker holds modules and resolves dependencies, it populates the IAT slots with actual addresses of the corresponding library functions. Although this adds an extra jump, incurring a performance penalty compared to intermodular calls, it minimizes the number of memory pages that require copy-on-write changes, thus conserving memory and disk I/O. If a call is known to be intermodular beforehand (if indicated by a dllimport attribute), the compiler can generate optimized code with a simple indirect call opcode. ==Use on other operating systems== The PE format is also used by ReactOS, an open-source operating system created to be binary-compatible with Windows. Historically, it has also been used by other operating systems such as SkyOS and BeOS R3. However, both SkyOS and BeOS eventually moved to ELF. The Mono development platform, which aims to be binary compatible with the Microsoft .NET Framework, uses the same PE format as the Microsoft implementation. The same goes for Microsoft's own cross-platform .NET Core. On x86(-64) Unix-like operating systems, Windows binaries (in PE format) can be executed using Wine. The HX DOS Extender also uses the PE format for native DOS 32-bit binaries, and can execute some Windows binaries in DOS, thus acting like an equivalent of Wine for DOS. Mac OS X 10.5 has the ability to load and parse PE files, although it does not maintain binary compatibility with Windows. UEFI and UEFI firmware use PE files, as well as the platform related ABI and calling convention (x64 ABI for typical PC devices) for applications. ==See also== ==References==

References

  1. application/vnd.microsoft.portable-executable · retrieved 2017-03-25 · rev 1373578392
    Cite this reference

    MLA "application/vnd.microsoft.portable-executable." Andersson, Henrik (2015-04-23). 2017-03-25. https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable. Accessed 24 November 2026.

    Chicago "application/vnd.microsoft.portable-executable." Andersson, Henrik (2015-04-23). 2017-03-25. https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable.

    APA Andersson, Henrik (2015-04-23). (2017). application/vnd.microsoft.portable-executable. Retrieved November 24, 2026, from https://www.iana.org/assignments/media-types/application/vnd.microsoft.portable-executable

  2. Portable executable (PE) - Definition - Trend Micro IN · retrieved 2022-11-09 · rev 1373578392
    Cite this reference

    MLA "Portable executable (PE) - Definition - Trend Micro IN." 2022-11-09. https://www.trendmicro.com/vinfo/in/security/definition/portable-executable-pe. Accessed 24 November 2026.

    Chicago "Portable executable (PE) - Definition - Trend Micro IN." 2022-11-09. https://www.trendmicro.com/vinfo/in/security/definition/portable-executable-pe.

    APA encyclopegia.org. (2022). Portable executable (PE) - Definition - Trend Micro IN. Retrieved November 24, 2026, from https://www.trendmicro.com/vinfo/in/security/definition/portable-executable-pe

  3. UEFI Specification, version 2.8B · retrieved 2026-11-19 · rev 1373578392
    Cite this reference

    MLA "UEFI Specification, version 2.8B." "UEFI Specification, version 2. 2026-11-19. https://uefi.org/sites/default/files/resources/UEFI%20Spec%202.8B%20May%202020.pdf. Accessed 24 November 2026.

    Chicago "UEFI Specification, version 2.8B." "UEFI Specification, version 2. 2026-11-19. https://uefi.org/sites/default/files/resources/UEFI%20Spec%202.8B%20May%202020.pdf.

    APA "UEFI Specification, version 2. (2026). UEFI Specification, version 2.8B. Retrieved November 24, 2026, from https://uefi.org/sites/default/files/resources/UEFI%20Spec%202.8B%20May%202020.pdf

  4. /STUB (MS-DOS Stub File Name) · retrieved 2026-11-19 · rev 1373578392
    Cite this reference

    MLA "/STUB (MS-DOS Stub File Name)." 2026-11-19. http://msdn.microsoft.com/en-us/library/7z0585h5.aspx. Accessed 24 November 2026.

    Chicago "/STUB (MS-DOS Stub File Name)." 2026-11-19. http://msdn.microsoft.com/en-us/library/7z0585h5.aspx.

    APA encyclopegia.org. (2026). /STUB (MS-DOS Stub File Name). Retrieved November 24, 2026, from http://msdn.microsoft.com/en-us/library/7z0585h5.aspx

  5. PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1373578392
    Cite this reference

    MLA "PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved 2026-11-20." PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved. 2026-11-19. https://gdatasoftware.com/blog/pebitnesstrick. Accessed 24 November 2026.

    Chicago "PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved 2026-11-20." PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved. 2026-11-19. https://gdatasoftware.com/blog/pebitnesstrick.

    APA PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved. (2026). PE trick explained: Telling 32 and 64 bit apart with naked eye by Karsten Hahn Wikipedia revision 1373578392, retrieved 2026-11-20. Retrieved November 24, 2026, from https://gdatasoftware.com/blog/pebitnesstrick

  6. PE Format at Microsoft.com Wikipedia revision 1373578392, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1373578392
    Cite this reference

    MLA "PE Format at Microsoft.com Wikipedia revision 1373578392, retrieved 2026-11-20." PE Format at Microsoft. 2026-11-19. https://docs.microsoft.com/en-us/windows/win32/debug/pe-format. Accessed 24 November 2026.

    Chicago "PE Format at Microsoft.com Wikipedia revision 1373578392, retrieved 2026-11-20." PE Format at Microsoft. 2026-11-19. https://docs.microsoft.com/en-us/windows/win32/debug/pe-format.

    APA PE Format at Microsoft. (2026). PE Format at Microsoft.com Wikipedia revision 1373578392, retrieved 2026-11-20. Retrieved November 24, 2026, from https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

  7. The Portable Executable File From Top to Bottom · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "The Portable Executable File From Top to Bottom." 2017-10-20. https://web.archive.org/web/20171020180919/http://www.csn.ul.ie/~caolan/pub/winresdump/winresdump/doc/pefile2.html. Accessed 24 November 2026.

    Chicago "The Portable Executable File From Top to Bottom." 2017-10-20. https://web.archive.org/web/20171020180919/http://www.csn.ul.ie/~caolan/pub/winresdump/winresdump/doc/pefile2.html.

    APA encyclopegia.org. (2017). The Portable Executable File From Top to Bottom. Retrieved November 24, 2026, from https://web.archive.org/web/20171020180919/http://www.csn.ul.ie/~caolan/pub/winresdump/winresdump/doc/pefile2.html

  8. PE Format (Windows) · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "PE Format (Windows)." a b "PE Format (Windows)". 2017-10-20. https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx. Accessed 24 November 2026.

    Chicago "PE Format (Windows)." a b "PE Format (Windows)". 2017-10-20. https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx.

    APA a b "PE Format (Windows)". (2017). PE Format (Windows). Retrieved November 24, 2026, from https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx

  9. Peering Inside the PE: A Tour of the Win32 Portable Executable File · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "Peering Inside the PE: A Tour of the Win32 Portable Executable File." a b "Peering Inside the PE: A Tour of the Win32 Portable Executable File". 2017-10-20. https://msdn.microsoft.com/en-us/library/ms809762.aspx. Accessed 24 November 2026.

    Chicago "Peering Inside the PE: A Tour of the Win32 Portable Executable File." a b "Peering Inside the PE: A Tour of the Win32 Portable Executable File". 2017-10-20. https://msdn.microsoft.com/en-us/library/ms809762.aspx.

    APA a b "Peering Inside the PE: A Tour of the Win32 Portable Executable File". (2017). Peering Inside the PE: A Tour of the Win32 Portable Executable File. Retrieved November 24, 2026, from https://msdn.microsoft.com/en-us/library/ms809762.aspx

  10. Uncovered: Evidence that Mac OS X could run Windows apps soon · retrieved 2007-12-02 · rev 1373578392
    Cite this reference

    MLA "Uncovered: Evidence that Mac OS X could run Windows apps soon." Chartier, David (2007-11-30). 2007-12-02. https://arstechnica.com/journals/apple.ars/2007/11/30/uncovered-evidence-that-mac-os-x-could-run-windows-apps-soon. Accessed 24 November 2026.

    Chicago "Uncovered: Evidence that Mac OS X could run Windows apps soon." Chartier, David (2007-11-30). 2007-12-02. https://arstechnica.com/journals/apple.ars/2007/11/30/uncovered-evidence-that-mac-os-x-could-run-windows-apps-soon.

    APA Chartier, David (2007-11-30). (2007). Uncovered: Evidence that Mac OS X could run Windows apps soon. Retrieved November 24, 2026, from https://arstechnica.com/journals/apple.ars/2007/11/30/uncovered-evidence-that-mac-os-x-could-run-windows-apps-soon

  11. application/vnd.microsoft.portable-executable . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "application/vnd.microsoft.portable-executable ." application/vnd. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "application/vnd.microsoft.portable-executable ." application/vnd. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA application/vnd. (2026). application/vnd.microsoft.portable-executable . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  12. === Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR), a process that makes a PE file's in-memory layout unpredictable and theref . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "=== Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR), a process that makes a PE file's in-memory layout unpredictable and theref ." === Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR). 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "=== Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR), a process that makes a PE file's in-memory layout unpredictable and theref ." === Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR). 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA === Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR). (2026). === Address Space Layout Randomization (ASLR) === Modern operating systems use address space layout randomization (ASLR), a process that makes a PE file's in-memory layout unpredictable and theref . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  13. Portable executable (PE) - Definition - Trend Micro IN . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "Portable executable (PE) - Definition - Trend Micro IN ." 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "Portable executable (PE) - Definition - Trend Micro IN ." 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA encyclopegia.org. (2026). Portable executable (PE) - Definition - Trend Micro IN . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  14. UEFI Specification, version 2.8B . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "UEFI Specification, version 2.8B ." UEFI Specification, version 2. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "UEFI Specification, version 2.8B ." UEFI Specification, version 2. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA UEFI Specification, version 2. (2026). UEFI Specification, version 2.8B . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  15. PE Format (Windows) . retrieved 2017-10-21 · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "PE Format (Windows) . retrieved 2017-10-21." PE Format (Windows). 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "PE Format (Windows) . retrieved 2017-10-21." PE Format (Windows). 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA PE Format (Windows). (2017). PE Format (Windows) . retrieved 2017-10-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  16. /STUB (MS-DOS Stub File Name) . 3 August 2021. · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "/STUB (MS-DOS Stub File Name) . 3 August 2021." /STUB (MS-DOS Stub File Name). 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "/STUB (MS-DOS Stub File Name) . 3 August 2021." /STUB (MS-DOS Stub File Name). 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA /STUB (MS-DOS Stub File Name). (2026). /STUB (MS-DOS Stub File Name) . 3 August 2021. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  17. [https://gdatasoftware.com/blog/pebitnesstrick PE trick explained: Telling 32 and 64 bit apart with naked eye] by Karsten Hahn . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "[https://gdatasoftware.com/blog/pebitnesstrick PE trick explained: Telling 32 and 64 bit apart with naked eye] by Karsten Hahn ." https://gdatasoftware. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "[https://gdatasoftware.com/blog/pebitnesstrick PE trick explained: Telling 32 and 64 bit apart with naked eye] by Karsten Hahn ." https://gdatasoftware. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA https://gdatasoftware. (2026). [https://gdatasoftware.com/blog/pebitnesstrick PE trick explained: Telling 32 and 64 bit apart with naked eye] by Karsten Hahn . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  18. [https://docs.microsoft.com/en-us/windows/win32/debug/pe-format PE Format] at Microsoft.com . · retrieved 2026-09-05 · rev 1373578392
    Cite this reference

    MLA "[https://docs.microsoft.com/en-us/windows/win32/debug/pe-format PE Format] at Microsoft.com ." https://docs. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "[https://docs.microsoft.com/en-us/windows/win32/debug/pe-format PE Format] at Microsoft.com ." https://docs. 2026-09-05. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA https://docs. (2026). [https://docs.microsoft.com/en-us/windows/win32/debug/pe-format PE Format] at Microsoft.com . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  19. The Portable Executable File From Top to Bottom . retrieved 2017-10-21 · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "The Portable Executable File From Top to Bottom . retrieved 2017-10-21." The Portable Executable File From Top to Bottom. 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "The Portable Executable File From Top to Bottom . retrieved 2017-10-21." The Portable Executable File From Top to Bottom. 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA The Portable Executable File From Top to Bottom. (2017). The Portable Executable File From Top to Bottom . retrieved 2017-10-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

  20. Peering Inside the PE: A Tour of the Win32 Portable Executable File . 30 June 2010. retrieved 2017-10-21 · retrieved 2017-10-20 · rev 1373578392
    Cite this reference

    MLA "Peering Inside the PE: A Tour of the Win32 Portable Executable File . 30 June 2010. retrieved 2017-10-21." Peering Inside the PE: A Tour of the Win32 Portable Executable File. 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392. Accessed 24 November 2026.

    Chicago "Peering Inside the PE: A Tour of the Win32 Portable Executable File . 30 June 2010. retrieved 2017-10-21." Peering Inside the PE: A Tour of the Win32 Portable Executable File. 2017-10-20. https://en.wikipedia.org/w/index.php?oldid=1373578392.

    APA Peering Inside the PE: A Tour of the Win32 Portable Executable File. (2017). Peering Inside the PE: A Tour of the Win32 Portable Executable File . 30 June 2010. retrieved 2017-10-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373578392

Cite this article

MLA

"Portable Executable." encyclopegia.org, 2026, https://encyclopegia.org/wiki/portable-executable. Accessed 24 November 2026.

Chicago

"Portable Executable." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/portable-executable.

APA

encyclopegia.org. (2026). Portable Executable. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/portable-executable

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

DLL hell

enwiki · references available

Finger (protocol)

enwiki · references available

Richard Boyle, 1st Earl of Cork

enwiki · references available

NATO phonetic alphabet

enwiki · references available

Texaco

enwiki · references available

Amoco

enwiki · references available

Mission San Luis Obispo de Tolosa

enwiki · references available

Sjögren's disease

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373578392 · 0.5 · snapshot enwiki-001373578392

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.