.NET中的PE文件 [英] PE files in .net

查看:199
本文介绍了.NET中的PE文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译控制台或Windows应用程序时,我得到了exe文件.
现在我的问题是:
1>此文件是否为包含IL代码的Assembly>
2>此文件是否称为.net PE文件?
3>这是PE文件,包含IL代码吗?

when i compile console or windows application i got exe file.
Now my question is that:
1>Is this file is Assembly which contains IL code>
2>Is this file called as .net PE files?
3>Is this is PE file consists of IL code as its part?

推荐答案

EXE文件包含IL代码(和其他一些支持古比)
在执行EXE时(通过支持小工具),将调用该框架来运行您的应用程序,并且JIT编译器将其转换为可在程序运行时由真实处理器直接执行的代码.

EXE文件是PE文件的一种,.NET DLL一样-它们都是可执行文件并且共享相似的结构,所以是的,PE文件包含IL代码.

但是您随时都找不到名为"myApp.PE"的文件!

此处对执行过程有很好的解释: http://www .mastercsharp.com/article/90/exploring-your-first-c-application-hello-world [
The EXE file contains the IL Code (and some other support gubbins)
The framework is called to run your app when the EXE is executed (via the support gubbins) and the JIT compiler converts it into code that is directly executable by the real processor, as the program is running.

The EXE file is a type of PE file, as is a .NET DLL - they are both executable and share a similar structure, so yes, the PE file contains IL code.

But you will not find a file called "myApp.PE" at any time!

There is a good explanation of the execution process here: http://www.mastercsharp.com/article/90/exploring-your-first-c-application-hello-world[^] - it''s about a third of the way down the page.


这篇关于.NET中的PE文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆