What is contained in a PE Header and CLR Header as part of managed Module in .NET executables?

♀尐吖头ヾ 提交于 2020-01-06 02:11:25

问题


What is meant by PE header in a .net assembly? I have read that .net programs are compiled into a portable executable which will contain IL Code and Meta Data.

But these terms PE Header and CLR Header are new.

Are they different from IF Code and Metadata? If so what do they contain and when will one need to use it?


回答1:


The PE file format is used for executables in Windows, like progams and DLLs, but also for some other data like .FON font files.

The PE header is the header of the file, which contains the basic information about what the file contains.

The CLR header is a data block in a PE file, present if the file contains a .NET assembly. The CLR header contains .NET metadata that the CLR loader uses.

More reading: http://en.wikipedia.org/wiki/Portable_Executable#.NET.2C_metadata.2C_and_the_PE_format



来源:https://stackoverflow.com/questions/20633444/what-is-contained-in-a-pe-header-and-clr-header-as-part-of-managed-module-in-ne

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!