×

C# Tutorial

Basics of .Net

C# Basics

C# Fundamentals

C# Operators

C# Loops

C# Type Conversions

C# Exception Handling

C# String Class

C# Arrays

C# List

C# Stack

C# Queue

C# Collections

C# Character Class

C# Class and Object

C# Namespaces

C# Delegates

C# Constructors

C# Inheritance

C# Operator Overloading

C# Structures

C# File Handling

C# Convert.ToInt32()

C# Int32 (int) Struct

C# DateTime Class

C# Uri Class

C# Database Connectivity

C# Windows

C# Other Topics

C# Q & A

C# Programs

C# Find O/P

Explain PE File Format in .NET

Learn: What is PE file format in .Net framework? What are the parts of the PE file format, what are the other formats which support PE file format?
[Last updated : March 26, 2023]

Portable Executable (PE) File Format

PE stands for Portable Executable. Windows executable file (.EXE ) and DLL (Dynamic Link Library) follow the PE file format. This is derivative of the Microsoft Common Object File Format (COFF).

Parts of Portable Executable (PE) File Format

A .NET PE file format consists 4 parts:

  1. PE/COFF headers
  2. CLR header
  3. CLR data
    1. Metadata
    2. MSIL code
  4. Native image section
.Net PE File Format
  • COFF header contains information regarding exe or dll file.
  • CLR header contains information about CLR how to manage memory, other stuffs related to CLR.
  • CLR data contains metadata of ddls and MSIL code generated by compilers.
  • And last part of PE format contains native image section like .data, .rdata, .rsrc, .text etc.

Any compiler that wants to generate Windows executable file must follow the PE/COFF specification.


Advertisement
Advertisement


Comments and Discussions!

Load comments ↻


Advertisement
Advertisement
Advertisement

Copyright © 2025 www.includehelp.com. All rights reserved.