Portable Executable Guide, Meaning , Facts, Information and Description
The Portable Executable (PE) format is an executable file format used in 32-bit and 64-bit versions of Windows operating systems. The term "portable" refers to the format's portability across all 32-bit (and by extension 64-bit) Windows operating systems. The PE format is basically a data structure that encapsulates the information necessary for the Windows OS loader to manage the wrapped executable code. This includes dynamic library references for linking, API export and import tables, and resource management data. On NT operating systems, the PE format supports EXE, DLL, OBJ, and other filetypes.PE is a modified version of the Unix COFF file format. PE/COFF is an alternate term in Windows development.
| Table of contents |
|
2 .NET, Metadata, and the PE Format 3 Misc. 4 Tools 5 External links |
Microsoft migrated to the PE format with the introduction of the Windows NT and Windows 95/98/ME operating systems (a hallmark of the transition to 32-bit systems). The format has retained limited legacy support to bridge the gap between DOS-based and NT systems. For example, PE/COFF Headers still include an MS-DOS executable header (or "stub") that displays the simple message "This program cannot be run in MSDOS mode", or similar, as backwards-compatible error output. PE also continues to serve the changing Windows platform. Some extensions include the .NET PE format (see below) and a 64-bit version called PE+ (sometimes PE32+).
Microsoft's .NET Framework has extended the PE format with features which support the Common Language Runtime (an implementation of the .NET Virtual Machine). The additions include a CLR Header and CLR Data section, appearing in that order after the PE/COFF Headers. The CLR Header section contains a reference to the function _CorExeMain, found in mscoree.dll, which calls and yields execution to the CLR.
The CLR Data section contains two important segments: Metadata and Intermediate Language (IL) code:
Computer viruses that infect PE files, such as CIH, often fill in the empty spaces within the file, so the file size does not grow.
This is an Article on Portable Executable. Page Contains Information, Facts Details or Explanation Guide About Portable Executable Brief History
.NET, Metadata, and the PE Format
Misc.
Tools
External links
