一般一个可执行文件的内部都包含一个PE头,系统根据PE的信息找到入口函数,在通过执行入口函数中的代码来执行可执行程序。托管程序的文件中相对于非托管程序还包含了一个CLR表头文件以及其他CLR需要的信息。

(1)非托管程序的执行过程
在非托管程序中,可执行里面保存的是机器代码,CPU可以直接加载并执行,当系统加载了可执行程序后,系统就将可执行文件的段基址加上偏移地址形成实际的物理地址,并直接加载到内存中运行。

(2)托管程序的执行过程

托管程序的可执行文件中,包含的是中间语言以及元数据,当然不能直接运行,必须启动CLR,由CLR对中间语言进行即时编译成机器代码,并加载到内存里面执行(具体过程:程序在进入入口函数前会提前跳转到MSCoree.dll中,调用它的代码来启动CLR并完成一些初始化工作)。当然,IL中的方法并不是每次被调用都会被编译一次,而是它只有在第一次调用时才进行编译,即时编译器会将方法名称以及对应的入口地址存放在映射表中,当下次调用该方法时,会直接从映射表里去而不是再编译一次。

http://zzdx.ycnews.cn/
http://zzdx.ycnews.cn/cf/77.html
http://zzdx.ycnews.cn/cnrtx/
http://zzdx.ycnews.cn/cnrtx/119.html
http://zzdx.ycnews.cn/cnrtx/120.html
http://zzdx.ycnews.cn/cnrtx/65.html
http://zzdx.ycnews.cn/cnrtx/66.html
http://zzdx.ycnews.cn/cnrtx/67.html
http://zzdx.ycnews.cn/cnrtx/68.html
http://zzdx.ycnews.cn/cnrtx/69.html
http://zzdx.ycnews.cn/cnrtx/70.html
http://zzdx.ycnews.cn/dxal/
http://zzdx.ycnews.cn/dxal/106.html
http://zzdx.ycnews.cn/dxal/107.html
http://zzdx.ycnews.cn/dxal/108.html
http://zzdx.ycnews.cn/dxal/109.html
http://zzdx.ycnews.cn/dxal/116.html
http://zzdx.ycnews.cn/dxal/23.html
http://zzdx.ycnews.cn/dxal/24.html
http://zzdx.ycnews.cn/dxal/25.html
http://zzdx.ycnews.cn/dxal/26.html
http://zzdx.ycnews.cn/dxal/27.html
http://zzdx.ycnews.cn/dxal/28.html
http://zzdx.ycnews.cn/dxal/29.html
http://zzdx.ycnews.cn/dxal/30.html
http://zzdx.ycnews.cn/dxbfz/38.html
http://zzdx.ycnews.cn/dxbk/
http://zzdx.ycnews.cn/dxby/35.html
http://zzdx.ycnews.cn/dxjj/37.html
http://zzdx.ycnews.cn/dxlx/
http://zzdx.ycnews.cn/dxrq/
http://zzdx.ycnews.cn/dxwh/22.html
http://zzdx.ycnews.cn/dxxl/32.html
http://zzdx.ycnews.cn/dxyf/21.html
http://zzdx.ycnews.cn/dxyf/33.html
http://zzdx.ycnews.cn/dxys/31.html
http://zzdx.ycnews.cn/dxzd/111.html
http://zzdx.ycnews.cn/dxzd/36.html
http://zzdx.ycnews.cn/dxzj/
http://zzdx.ycnews.cn/dxzj/124.html
http://zzdx.ycnews.cn/dxzj/125.html
http://zzdx.ycnews.cn/dxzj/126.html
http://zzdx.ycnews.cn/dxzl/
http://zzdx.ycnews.cn/dxzl/110.html
http://zzdx.ycnews.cn/dxzl/112.html
http://zzdx.ycnews.cn/dxzz/34.html
http://zzdx.ycnews.cn/etdx/
http://zzdx.ycnews.cn/etdx/114.html
http://zzdx.ycnews.cn/etdx/115.html
http://zzdx.ycnews.cn/etdx/39.html
http://zzdx.ycnews.cn/etdx/40.html
http://zzdx.ycnews.cn/etdx/41.html
http://zzdx.ycnews.cn/etdx/42.html
http://zzdx.ycnews.cn/etdx/43.html
http://zzdx.ycnews.cn/etdx/44.html
http://zzdx.ycnews.cn/jfxdx/72.html
http://zzdx.ycnews.cn/jj/76.html
http://zzdx.ycnews.cn/lnrdx/
http://zzdx.ycnews.cn/lnrdx/59.html
http://zzdx.ycnews.cn/lnrdx/60.html
http://zzdx.ycnews.cn/lnrdx/61.html
http://zzdx.ycnews.cn/lnrdx/62.html
http://zzdx.ycnews.cn/lnrdx/63.html
http://zzdx.ycnews.cn/lnrdx/64.html
http://zzdx.ycnews.cn/lylx/
http://zzdx.ycnews.cn/nxdx/
http://zzdx.ycnews.cn/nxdx/118.html
http://zzdx.ycnews.cn/nxdx/51.html
http://zzdx.ycnews.cn/nxdx/52.html
http://zzdx.ycnews.cn/nxdx/53.html
http://zzdx.ycnews.cn/nxdx/56.html
http://zzdx.ycnews.cn/nxdx/57.html
http://zzdx.ycnews.cn/nxdx/58.html
http://zzdx.ycnews.cn/qsndx/
http://zzdx.ycnews.cn/qsndx/113.html
http://zzdx.ycnews.cn/qsndx/45.html
http://zzdx.ycnews.cn/qsndx/46.html
http://zzdx.ycnews.cn/qsndx/47.html
http://zzdx.ycnews.cn/qsndx/48.html
http://zzdx.ycnews.cn/qsndx/49.html
http://zzdx.ycnews.cn/qsndx/50.html
http://zzdx.ycnews.cn/swt/
http://zzdx.ycnews.cn/swt/qq.html
http://zzdx.ycnews.cn/swt/tel.html
http://zzdx.ycnews.cn/xslw/
http://zzdx.ycnews.cn/xslw/100.html
http://zzdx.ycnews.cn/xslw/101.html
http://zzdx.ycnews.cn/xslw/102.html
http://zzdx.ycnews.cn/xslw/71.html
http://zzdx.ycnews.cn/xslw/99.html
http://zzdx.ycnews.cn/ydf/74.html
http://zzdx.ycnews.cn/yfxdx/73.html
http://zzdx.ycnews.cn/yjf/75.html
http://zzdx.ycnews.cn/yygy/
http://zzdx.ycnews.cn/yygy/86.html
http://zzdx.ycnews.cn/yygy/87.html
http://zzdx.ycnews.cn/yyjj/
http://zzdx.ycnews.cn/yyjj/85.html
http://zzdx.ycnews.cn/yyxw/
http://zzdx.ycnews.cn/yyxw/103.html
http://zzdx.ycnews.cn/yyxw/104.html
http://zzdx.ycnews.cn/yyxw/105.html
http://zzdx.ycnews.cn/yyxw/83.html
http://zzdx.ycnews.cn/yyxw/84.html
http://zzdx.ycnews.cn/zjjz/117.html
http://zzdx.ycnews.cn/zjjz/88.html
http://zzdx.ycnews.cn/zjjz/91.html
http://zzdx.ycnews.cn/zjjz/93.html
http://zzdx.ycnews.cn/zjwd/
http://zzdx.ycnews.cn/zjwd/90.html
http://zzdx.ycnews.cn/zjwd/92.html
http://zzdx.ycnews.cn/zjwd/94.html

Copyright © 2024 火之光
Powered by .NET 8.0 on Kubernetes